bugfix ItemCard
This commit is contained in:
932
01-frontend/package-lock.json
generated
932
01-frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user