Only show recently edited if there's some

This commit is contained in:
Jori Lallo 2017-10-07 15:54:29 -07:00
parent 34dd1f1409
commit a7df8b9f76
1 changed files with 7 additions and 2 deletions

View File

@ -56,8 +56,13 @@ type Props = {
documents={this.props.documents.recentlyViewed}
/>
</Flex>}
<Subheading>Recently edited</Subheading>
<DocumentList documents={this.props.documents.recentlyEdited} />
{this.props.documents.recentlyEdited.length > 0 &&
<Flex column>
<Subheading>Recently edited</Subheading>
<DocumentList
documents={this.props.documents.recentlyEdited}
/>
</Flex>}
</Flex>
: <ListPlaceholder count={5} />}
</CenteredContent>