Merge remote-tracking branch 'origin/main'

This commit is contained in:
Laura Dolibois
2025-06-02 23:28:21 +02:00
2 changed files with 500 additions and 441 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -36,11 +36,18 @@ export default function ItemCard({ item }: { item: Item }) {
<Typography gutterBottom variant="h5" component="div">
{item.name}
</Typography>
<Rating name="half-rating" readOnly defaultValue={item.rating} precision={0.5} />
<Box sx={{ display: "flex", justifyContent: "space-between", alignItems: "flex-end" }}>
<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>