Fixed publishing info in search
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import marked from 'marked';
|
import { toJS } from 'mobx';
|
||||||
|
|
||||||
import { Link } from 'react-router';
|
import { Link } from 'react-router';
|
||||||
|
|
||||||
@ -16,9 +16,11 @@ class Document extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<div className={ styles.container }>
|
<div className={ styles.container }>
|
||||||
<PublishingInfo
|
<PublishingInfo
|
||||||
avatarUrl={ this.props.document.user.avatarUrl }
|
createdAt={ this.props.document.createdAt }
|
||||||
name={ this.props.document.user.name }
|
createdBy={ this.props.document.createdBy }
|
||||||
createdAt={ document.createdAt }
|
updatedAt={ this.props.document.updatedAt }
|
||||||
|
updatedBy={ this.props.document.updatedBy }
|
||||||
|
collaborators={ toJS(this.props.document.collaborators) }
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Link
|
<Link
|
||||||
@ -41,6 +43,6 @@ class Document extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
export default Document;
|
export default Document;
|
||||||
|
Reference in New Issue
Block a user