Updated currency format

This commit is contained in:
Laura Dolibois
2025-05-25 12:55:30 +02:00
parent 4f4397523e
commit a8b781327b

View File

@@ -37,8 +37,8 @@ export default function ItemCard({ item }: { item: Item }) {
</Typography>
<Rating name="half-rating" readOnly defaultValue={item.rating} precision={0.5} />
<Typography variant="body2" sx={{ color: 'text.secondary' }} className="item-description">
{item.price * (1 - item.discount / 100)}
<IconButton aria-label="add to shopping cart" onClick={handleAddToCart}>
{(item.price * (1 - item.discount / 100)).toFixed(2)}
<IconButton aria-label={t('addToCart')} onClick={handleAddToCart}>
<AddShoppingCart />
</IconButton>
</Typography>