Adjust color and size of favorite cell

This commit is contained in:
jeffvli 2023-01-07 23:44:53 -08:00
parent 02ed9b7a5c
commit 99cd48ca6d

View file

@ -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>
); );