Minor fixes.

This commit is contained in:
FlorianSpeicher
2025-05-03 20:01:50 +02:00
parent f0acd9d236
commit 7895ad5c2b

View File

@@ -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>