added rating to ItemCard again
This commit is contained in:
@@ -36,6 +36,7 @@ export default function ItemCard({ item }: { item: Item }) {
|
||||
<Typography gutterBottom variant="h5" component="div">
|
||||
{item.name}
|
||||
</Typography>
|
||||
<Rating name="half-rating" readOnly defaultValue={item.rating} precision={0.5} />
|
||||
<Box sx={{ display: "flex", justifyContent: "space-between", alignItems: "flex-end" }}>
|
||||
<Typography variant="body2" sx={{ color: 'text.secondary' }} className="item-description">
|
||||
{(item.price * (1 - item.discount / 100)).toFixed(2)} €
|
||||
|
||||
Reference in New Issue
Block a user