mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Adjust color and size of favorite cell
This commit is contained in:
@@ -79,13 +79,15 @@ export const FavoriteCell = ({ value, data, node }: ICellRendererParams) => {
|
|||||||
compact
|
compact
|
||||||
sx={{
|
sx={{
|
||||||
svg: {
|
svg: {
|
||||||
fill: 'var(--primary-color)',
|
fill: !value
|
||||||
|
? 'var(--main-fg-secondary) !important'
|
||||||
|
: 'var(--primary-color) !important',
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
variant="subtle"
|
variant="subtle"
|
||||||
onClick={handleToggleFavorite}
|
onClick={handleToggleFavorite}
|
||||||
>
|
>
|
||||||
{!value ? <RiHeartLine /> : <RiHeartFill fill="var(--primary-color)" />}
|
{!value ? <RiHeartLine size="1.3em" /> : <RiHeartFill size="1.3em" />}
|
||||||
</Button>
|
</Button>
|
||||||
</CellContainer>
|
</CellContainer>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user