bugfix ItemCard

This commit is contained in:
slsa275
2025-06-02 12:04:01 +02:00
parent cbdf40fed1
commit e865b67b8e
2 changed files with 499 additions and 441 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -40,7 +40,13 @@ export default function ItemCard({ item }: { item: Item }) {
<Typography variant="body2" sx={{ color: 'text.secondary' }} className="item-description">
{(item.price * (1 - item.discount / 100)).toFixed(2)}
</Typography>
<IconButton aria-label={t('addToCart')} onClick={handleAddToCart}>
<IconButton
aria-label={t('addToCart')}
onClick={(event) => {
event.stopPropagation();
handleAddToCart();
}}
>
<AddShoppingCart />
</IconButton>
</Box>