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 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;