Allow unbookmarking from the card

This commit is contained in:
Yihao Wang
2025-07-14 14:13:52 +12:00
parent 03d49e384f
commit 5b98dda19b

View File

@@ -222,7 +222,22 @@ export default function Hero() {
}
}}
>
<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>
</Grid>
))}