Fixed publishing info in search

This commit is contained in:
Jori Lallo
2016-08-15 21:41:41 +02:00
parent 70050803a1
commit 537341c01c

View File

@ -1,5 +1,5 @@
import React from 'react';
import marked from 'marked';
import { toJS } from 'mobx';
import { Link } from 'react-router';
@ -16,9 +16,11 @@ class Document extends React.Component {
return (
<div className={ styles.container }>
<PublishingInfo
avatarUrl={ this.props.document.user.avatarUrl }
name={ this.props.document.user.name }
createdAt={ document.createdAt }
createdAt={ this.props.document.createdAt }
createdBy={ this.props.document.createdBy }
updatedAt={ this.props.document.updatedAt }
updatedBy={ this.props.document.updatedBy }
collaborators={ toJS(this.props.document.collaborators) }
/>
<Link
@ -41,6 +43,6 @@ class Document extends React.Component {
</div>
);
}
};
}
export default Document;