mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +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;
|
const { categories = null, selectedCategoryCode = null, setSelectedCategoryCode = null, children = null } = props;
|
||||||
|
|
||||||
return (
|
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) } /> ) }
|
{ categories && (categories.length > 0) && categories.map((category, index) => <AchievementsCategoryListItemView key={ index } category={ category } itemActive={ (selectedCategoryCode === category.code) } onClick={ event => setSelectedCategoryCode(category.code) } /> ) }
|
||||||
{ children }
|
{ children }
|
||||||
</AutoGrid>
|
</AutoGrid>
|
||||||
|
Loading…
Reference in New Issue
Block a user