bugfix on homepage (filter and buttons)
This commit is contained in:
@@ -39,9 +39,6 @@ export default function ItemCard({ item }: { item: Item }) {
|
||||
<Rating name="half-rating" readOnly defaultValue={item.rating} precision={0.5} />
|
||||
<Typography variant="body2" sx={{ color: 'text.secondary' }} className="item-description">
|
||||
{(item.price * (1 - item.discount / 100)).toFixed(2)} €
|
||||
<IconButton aria-label={t('addToCart')} onClick={handleAddToCart}>
|
||||
<AddShoppingCart />
|
||||
</IconButton>
|
||||
</Typography>
|
||||
|
||||
{item.stock > 10 ? (
|
||||
@@ -59,6 +56,11 @@ export default function ItemCard({ item }: { item: Item }) {
|
||||
)}
|
||||
</CardContent>
|
||||
</CardActionArea>
|
||||
<CardContent>
|
||||
<IconButton aria-label={t('addToCart')} onClick={handleAddToCart}>
|
||||
<AddShoppingCart />
|
||||
</IconButton>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</Paper>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user