mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2026-03-24 00:32:27 +01:00
interepret API response
This commit is contained in:
@@ -17,13 +17,17 @@ interface IState {
|
||||
|
||||
const headers = [
|
||||
{
|
||||
name: 'hot',
|
||||
name: 'ripe',
|
||||
title: 'Hot',
|
||||
},
|
||||
{
|
||||
name: 'new',
|
||||
title: 'New',
|
||||
},
|
||||
{
|
||||
name: 'installed',
|
||||
title: 'Installed',
|
||||
},
|
||||
]
|
||||
|
||||
export class Mods extends React.Component<IProps, IState> {
|
||||
@@ -55,7 +59,7 @@ export class Mods extends React.Component<IProps, IState> {
|
||||
|
||||
<ModHeader onChange={this.setCategory} headers={headers} defaultHeader={'hot'} />
|
||||
|
||||
<ModList sort={this.state.category} />
|
||||
<ModList mode={this.state.category} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user