mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Fix achievement grid
This commit is contained in:
parent
d3c3d4b048
commit
21183dff61
@ -15,7 +15,7 @@ export const AchievementsCategoryListView: FC<AchievementsCategoryListViewProps>
|
||||
const { categories = null, selectedCategoryCode = null, setSelectedCategoryCode = null, children = null } = props;
|
||||
|
||||
return (
|
||||
<AutoGrid columnMinWidth={ 90 } columnMinHeight={ 100 }>
|
||||
<AutoGrid columnCount={ 3 } columnMinWidth={ 90 } columnMinHeight={ 100 }>
|
||||
{ categories && (categories.length > 0) && categories.map((category, index) => <AchievementsCategoryListItemView key={ index } category={ category } itemActive={ (selectedCategoryCode === category.code) } onClick={ event => setSelectedCategoryCode(category.code) } /> ) }
|
||||
{ children }
|
||||
</AutoGrid>
|
||||
|
Loading…
Reference in New Issue
Block a user