feat(header): back to main button at top

This commit is contained in:
Alexey Kasyanchuk
2018-03-27 00:04:22 +03:00
parent fa211cdb12
commit 0714131a5f
2 changed files with 42 additions and 1 deletions

View File

@ -106,12 +106,16 @@ export default class TopPage extends Page {
return <TorrentLine key={index} torrent={torrent} />
})
}
{
torrents.length > 0
&&
<div>
<ListItem innerDivStyle={{textAlign: 'center', padding: '1em'}} primaryText={<span>More Torrents</span>} onClick={() => {
this.loadMoreTorrents(type)
}} />
<Divider />
</div>
}
</List>
</Tab>
)