Only show recently edited if there's some
This commit is contained in:
parent
34dd1f1409
commit
a7df8b9f76
|
@ -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>
|
||||
|
|
Reference in New Issue