Updated currency format
This commit is contained in:
@@ -37,8 +37,8 @@ export default function ItemCard({ item }: { item: Item }) {
|
|||||||
</Typography>
|
</Typography>
|
||||||
<Rating name="half-rating" readOnly defaultValue={item.rating} precision={0.5} />
|
<Rating name="half-rating" readOnly defaultValue={item.rating} precision={0.5} />
|
||||||
<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)} €
|
{(item.price * (1 - item.discount / 100)).toFixed(2)} €
|
||||||
<IconButton aria-label="add to shopping cart" onClick={handleAddToCart}>
|
<IconButton aria-label={t('addToCart')} onClick={handleAddToCart}>
|
||||||
<AddShoppingCart />
|
<AddShoppingCart />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|||||||
Reference in New Issue
Block a user