Merge pull request #291 from jorilallo/jori/no-whitelisting

Dropped Slack whitelisting
This commit is contained in:
Jori Lallo
2017-10-07 15:55:32 -07:00
committed by GitHub
4 changed files with 16 additions and 101 deletions

View File

@ -49,10 +49,20 @@ type Props = {
<h1>Home</h1>
{this.isLoaded
? <Flex column>
<Subheading>Recently viewed</Subheading>
<DocumentList documents={this.props.documents.recentlyViewed} />
<Subheading>Recently edited</Subheading>
<DocumentList documents={this.props.documents.recentlyEdited} />
{this.props.documents.recentlyViewed.length > 0 &&
<Flex column>
<Subheading>Recently viewed</Subheading>
<DocumentList
documents={this.props.documents.recentlyViewed}
/>
</Flex>}
{this.props.documents.recentlyEdited.length > 0 &&
<Flex column>
<Subheading>Recently edited</Subheading>
<DocumentList
documents={this.props.documents.recentlyEdited}
/>
</Flex>}
</Flex>
: <ListPlaceholder count={5} />}
</CenteredContent>