mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-31 10:22:36 +01:00
Add HC icon to colors
This commit is contained in:
parent
ea3402af88
commit
bdacfba229
@ -1,5 +1,6 @@
|
||||
import { FC, useCallback, useEffect, useState } from 'react';
|
||||
import { NitroCardGridItemView } from '../../../../layout/card/grid/item/NitroCardGridItemView';
|
||||
import { CurrencyIcon } from '../../../shared/currency-icon/CurrencyIcon';
|
||||
import { AvatarEditorPaletteSetItemProps } from './AvatarEditorPaletteSetItem.types';
|
||||
|
||||
export const AvatarEditorPaletteSetItem: FC<AvatarEditorPaletteSetItemProps> = props =>
|
||||
@ -22,5 +23,9 @@ export const AvatarEditorPaletteSetItem: FC<AvatarEditorPaletteSetItemProps> = p
|
||||
}
|
||||
})
|
||||
|
||||
return <NitroCardGridItemView itemColor={ colorItem.color } itemActive={ colorItem.isSelected } { ...rest } />
|
||||
return (
|
||||
<NitroCardGridItemView itemColor={ colorItem.color } itemActive={ colorItem.isSelected } { ...rest }>
|
||||
{ colorItem.isHC && <CurrencyIcon className="position-absolute end-1 bottom-1" type={ 'hc' } /> }
|
||||
</NitroCardGridItemView>
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user