Fixed image not showing after filtering by importing a static asset
This commit is contained in:
@@ -5,6 +5,7 @@ import Item from "../../components/Item";
|
||||
import { useBasket } from "../BasketProvider";
|
||||
import "../helper.css";
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import HTWImage from '../../assets/HTW.jpg';
|
||||
|
||||
export default function ItemCard({ item }: { item: Item }) {
|
||||
|
||||
@@ -28,7 +29,7 @@ export default function ItemCard({ item }: { item: Item }) {
|
||||
<CardMedia
|
||||
component="img"
|
||||
height="140"
|
||||
image="src//assets/HTW.jpg"
|
||||
image={HTWImage}
|
||||
alt={item.name}
|
||||
/>
|
||||
<CardContent>
|
||||
|
||||
Reference in New Issue
Block a user