Adjust color and size of favorite cell
This commit is contained in:
parent
02ed9b7a5c
commit
99cd48ca6d
1 changed files with 4 additions and 2 deletions
|
@ -79,13 +79,15 @@ export const FavoriteCell = ({ value, data, node }: ICellRendererParams) => {
|
|||
compact
|
||||
sx={{
|
||||
svg: {
|
||||
fill: 'var(--primary-color)',
|
||||
fill: !value
|
||||
? 'var(--main-fg-secondary) !important'
|
||||
: 'var(--primary-color) !important',
|
||||
},
|
||||
}}
|
||||
variant="subtle"
|
||||
onClick={handleToggleFavorite}
|
||||
>
|
||||
{!value ? <RiHeartLine /> : <RiHeartFill fill="var(--primary-color)" />}
|
||||
{!value ? <RiHeartLine size="1.3em" /> : <RiHeartFill size="1.3em" />}
|
||||
</Button>
|
||||
</CellContainer>
|
||||
);
|
||||
|
|
Reference in a new issue