mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 12:30:12 +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
|
||||
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 New Issue
Block a user