Skip to content

Commit

Permalink
feat(top): categories to tab items and new items load
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Mar 26, 2018
1 parent 84cd86d commit 6f1a3c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/top-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class TopPage extends Page {
audio: 'Audio/Music',
books: 'Books',
pictures: 'Pictures/Images',
application: 'Applications/Games',
application: 'Apps/Games',
archive: 'Archives',
week: 'Last week',
hours: 'Last 24 hours',
Expand Down Expand Up @@ -87,7 +87,9 @@ export default class TopPage extends Page {
<Tabs
className='w100p'
value={this.state.value}
onChange={this.handleChange}
onChange={this.handleChange}
tabItemContainerStyle={{flexWrap: 'wrap', alignItems: 'stretch'}}
inkBarStyle={{display: 'none'}}
>
{
this.types.map((type, index) => {
Expand All @@ -98,7 +100,7 @@ export default class TopPage extends Page {

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'}}>
{
torrents.map((torrent, index) => {
Expand Down

0 comments on commit 6f1a3c3

Please sign in to comment.