Added price to ItemCard.
This commit is contained in:
@@ -38,6 +38,9 @@ export default function ItemCard({ item }: { item: Item }) {
|
||||
<IconButton color="primary" aria-label="add to shopping cart" onClick={handleAddToCart}>
|
||||
<AddShoppingCart />
|
||||
</IconButton>
|
||||
<Typography variant="body2" sx={{ color: 'text.secondary' }}>
|
||||
{item.price * (1 - item.discount / 100)} €
|
||||
</Typography>
|
||||
</CardContent>
|
||||
</CardActionArea>
|
||||
</Card>
|
||||
|
||||
Reference in New Issue
Block a user