mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-22 22:30:52 +01:00
Change details
This commit is contained in:
parent
ec284d5b52
commit
155665885d
@ -69,19 +69,13 @@ export const AvatarEditorModelView: FC<AvatarEditorModelViewProps> = props =>
|
|||||||
{ !model.canSetGender && model.categories && (model.categories.size > 0) && Array.from(model.categories.keys()).map(name =>
|
{ !model.canSetGender && model.categories && (model.categories.size > 0) && Array.from(model.categories.keys()).map(name =>
|
||||||
{
|
{
|
||||||
const category = model.categories.get(name);
|
const category = model.categories.get(name);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={ name }>
|
(!isFromFootballGate || (isFromFootballGate && CATEGORY_FOOTBALL_GATE.includes(category.name))) &&
|
||||||
<Flex center pointer className="category-item" onClick={ event => selectCategory(name) }>
|
<Flex key={ category.name } center pointer className="category-item" onClick={ event => selectCategory(name) }>
|
||||||
{ (isFromFootballGate && CATEGORY_FOOTBALL_GATE.includes(category.name)) &&
|
<AvatarEditorIcon icon={ category.name } selected={ (activeCategory === category) } />
|
||||||
<AvatarEditorIcon icon={ category.name } selected={ (activeCategory === category) } />
|
</Flex>
|
||||||
}
|
)
|
||||||
{ (!isFromFootballGate) &&
|
|
||||||
<AvatarEditorIcon icon={ category.name } selected={ (activeCategory === category) } />
|
|
||||||
}
|
|
||||||
</Flex>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}) }
|
}) }
|
||||||
</Column>
|
</Column>
|
||||||
<Column size={ 5 } overflow="hidden">
|
<Column size={ 5 } overflow="hidden">
|
||||||
|
Loading…
Reference in New Issue
Block a user