diff --git a/app/src/components/ItemCard.tsx b/app/src/components/ItemCard.tsx index 1fbe087..85abcc0 100644 --- a/app/src/components/ItemCard.tsx +++ b/app/src/components/ItemCard.tsx @@ -2,15 +2,16 @@ interface ItemCardProps { item: string; index: number; cost: string; + imageURL?: string; } -export function ItemCard({ item, index, cost }: ItemCardProps) { +export function ItemCard({ item, index, cost, imageURL }: ItemCardProps) { return (
{item}
diff --git a/app/src/components/ItemGrid.tsx b/app/src/components/ItemGrid.tsx index 3eb6f56..0b07e0f 100644 --- a/app/src/components/ItemGrid.tsx +++ b/app/src/components/ItemGrid.tsx @@ -1,7 +1,12 @@ import { ItemCard } from "./ItemCard"; import { IItems } from "../interfaces/interfaces"; -export default function ItemGrid({ listings }: { listings: IItems }) { +interface ItemGridProps { + listings: IItems; + imageURLs: IItems; +} + +export default function ItemGrid({ listings, imageURLs }: ItemGridProps) { return ( <> @@ -13,7 +18,7 @@ export default function ItemGrid({ listings }: { listings: IItems }) {