Skip to content

Commit

Permalink
Refactor ViewItemBlock component to use a placeholder image for the item
Browse files Browse the repository at this point in the history
  • Loading branch information
mmpotulo28 committed Oct 17, 2024
1 parent 01aefe3 commit 2d4b51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/item/components/ViewItemBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ViewItemBlock: React.FC<ViewItemBlockProps> = ({ item, btnClass, statusCla
const [extras, setExtras] = React.useState<string>(
`${selectedOption}, ${plastic ? "Plastic" : "No plastic"}`,
);
const [image, setImage] = React.useState<string>(item.img);
const [image, setImage] = React.useState<string>("placeholder-image.webp");
const [cartItem, setCartItem] = React.useState<iCartItem>();

React.useEffect(() => {
Expand Down

0 comments on commit 2d4b51e

Please sign in to comment.