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