Minor fixes.
This commit is contained in:
@@ -32,7 +32,7 @@ export default function Product() {
|
||||
|
||||
const handleAddToCart = () => {
|
||||
addToBasket(item.id, quantity);
|
||||
console.log(`Added ${quantity} of ${item.name} to basket`);
|
||||
console.log(`Added {quantity} of €{item.name} to basket`);
|
||||
};
|
||||
|
||||
const discountedPrice = item.price * (1 - item.discount / 100);
|
||||
@@ -77,7 +77,7 @@ export default function Product() {
|
||||
color="text.secondary"
|
||||
sx={{ textDecoration: 'line-through' }}
|
||||
>
|
||||
${item.price.toFixed(2)}
|
||||
€{item.price.toFixed(2)}
|
||||
</Typography>
|
||||
<Typography variant="h6" color="error">
|
||||
-{item.discount}%
|
||||
@@ -130,7 +130,7 @@ export default function Product() {
|
||||
<Box sx={{ mt: 2 }}>
|
||||
<Typography variant="body2" color="text.secondary">
|
||||
<LocalShippingIcon sx={{ mr: 1, verticalAlign: 'middle' }} />
|
||||
Free shipping on orders over $50
|
||||
Free shipping on orders over €50
|
||||
</Typography>
|
||||
</Box>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user