Dropped whitelisting

This commit is contained in:
Jori Lallo
2017-10-04 01:12:57 -07:00
parent 77a38fc3d3
commit 34dd1f1409
4 changed files with 9 additions and 99 deletions

View File

@@ -49,8 +49,13 @@ type Props = {
<h1>Home</h1>
{this.isLoaded
? <Flex column>
<Subheading>Recently viewed</Subheading>
<DocumentList documents={this.props.documents.recentlyViewed} />
{this.props.documents.recentlyViewed.length > 0 &&
<Flex column>
<Subheading>Recently viewed</Subheading>
<DocumentList
documents={this.props.documents.recentlyViewed}
/>
</Flex>}
<Subheading>Recently edited</Subheading>
<DocumentList documents={this.props.documents.recentlyEdited} />
</Flex>