mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-09-20 14:39:34 +02:00
Allow unbookmarking from the card
This commit is contained in:
@@ -222,7 +222,22 @@ export default function Hero() {
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Typography>{tool.label}</Typography>
|
<Stack direction={'row'} spacing={2} alignItems={'center'}>
|
||||||
|
<Typography>{tool.label}</Typography>
|
||||||
|
{bookmarkedToolPaths.length > 0 && (
|
||||||
|
<Icon
|
||||||
|
icon={'mdi:close'}
|
||||||
|
color={theme.palette.grey[500]}
|
||||||
|
fontSize={20}
|
||||||
|
onClick={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
|
const path = tool.url.substring(1);
|
||||||
|
toggleBookmarked(path);
|
||||||
|
setBookmarkedToolPaths(getBookmarkedToolPaths());
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
</Stack>
|
||||||
</Box>
|
</Box>
|
||||||
</Grid>
|
</Grid>
|
||||||
))}
|
))}
|
||||||
|
Reference in New Issue
Block a user