Merge remote-tracking branch 'origin/main'
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
@@ -36,11 +36,18 @@ export default function ItemCard({ item }: { item: Item }) {
|
|||||||
<Typography gutterBottom variant="h5" component="div">
|
<Typography gutterBottom variant="h5" component="div">
|
||||||
{item.name}
|
{item.name}
|
||||||
</Typography>
|
</Typography>
|
||||||
|
<Rating name="half-rating" readOnly defaultValue={item.rating} precision={0.5} />
|
||||||
<Box sx={{ display: "flex", justifyContent: "space-between", alignItems: "flex-end" }}>
|
<Box sx={{ display: "flex", justifyContent: "space-between", alignItems: "flex-end" }}>
|
||||||
<Typography variant="body2" sx={{ color: 'text.secondary' }} className="item-description">
|
<Typography variant="body2" sx={{ color: 'text.secondary' }} className="item-description">
|
||||||
{(item.price * (1 - item.discount / 100)).toFixed(2)} €
|
{(item.price * (1 - item.discount / 100)).toFixed(2)} €
|
||||||
</Typography>
|
</Typography>
|
||||||
<IconButton aria-label={t('addToCart')} onClick={handleAddToCart}>
|
<IconButton
|
||||||
|
aria-label={t('addToCart')}
|
||||||
|
onClick={(event) => {
|
||||||
|
event.stopPropagation();
|
||||||
|
handleAddToCart();
|
||||||
|
}}
|
||||||
|
>
|
||||||
<AddShoppingCart />
|
<AddShoppingCart />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user