Add recently viewed docs to dashboard

This commit is contained in:
Tom Moor
2017-06-25 20:32:05 -07:00
parent 93a44e4a4c
commit 86b0966703
7 changed files with 75 additions and 42 deletions

View File

@ -2,7 +2,6 @@
import React from 'react';
import type { Document } from 'types';
import DocumentPreview from 'components/DocumentPreview';
import Divider from 'components/Divider';
class DocumentList extends React.Component {
props: {
@ -14,10 +13,7 @@ class DocumentList extends React.Component {
<div>
{this.props.documents &&
this.props.documents.map(document => (
<div>
<DocumentPreview document={document} />
<Divider />
</div>
<DocumentPreview document={document} />
))}
</div>
);