feat(top): categories to tab items and new items load

This commit is contained in:
Alexey Kasyanchuk 2018-03-26 20:58:46 +03:00
parent 99b48ef285
commit c78857db60

View File

@ -22,7 +22,7 @@ export default class TopPage extends Page {
audio: 'Audio/Music', audio: 'Audio/Music',
books: 'Books', books: 'Books',
pictures: 'Pictures/Images', pictures: 'Pictures/Images',
application: 'Applications/Games', application: 'Apps/Games',
archive: 'Archives', archive: 'Archives',
week: 'Last week', week: 'Last week',
hours: 'Last 24 hours', hours: 'Last 24 hours',
@ -88,6 +88,8 @@ export default class TopPage extends Page {
className='w100p' className='w100p'
value={this.state.value} value={this.state.value}
onChange={this.handleChange} onChange={this.handleChange}
tabItemContainerStyle={{flexWrap: 'wrap', alignItems: 'stretch'}}
inkBarStyle={{display: 'none'}}
> >
{ {
this.types.map((type, index) => { this.types.map((type, index) => {
@ -98,7 +100,7 @@ export default class TopPage extends Page {
return ( return (
<Tab key={index} label={this.descriptions[type]} value={this.descriptions[type]}> <Tab style={{minWidth: 150}} key={index} label={this.descriptions[type]} value={this.descriptions[type]}>
<List style={{minWidth: '20em'}}> <List style={{minWidth: '20em'}}>
{ {
torrents.map((torrent, index) => { torrents.map((torrent, index) => {