diff --git a/src/Pages/Shop.js b/src/Pages/Shop.js index 8779e0d..d915314 100644 --- a/src/Pages/Shop.js +++ b/src/Pages/Shop.js @@ -813,6 +813,12 @@ function Shop() { ref.current.scrollIntoView({ behavior: "smooth", block: "start" }); } }; + + + const handleAddToCart = (product) => { + dispatch(addToCart(product)); + toast.success(`₹{product.name} added to cart!`); + const toggleHeart = (product) => { const isInWishlist = wishlistItems.some(item => item.id === product.id); @@ -824,6 +830,7 @@ function Shop() { dispatch(addToWishlist(product)); toast.success(`${product.name} added to wishlist!`, { autoClose: 2000 }); } + }; @@ -969,10 +976,17 @@ function Shop() { }} > + className={`fa-heart ${ wishlistItems.some(item => item.id === product.id) ? "fas" : "far" }`} > + {product.name} + + ₹{product.price.toFixed(2)} + + + ${product.price.toFixed(2)} + ))} diff --git a/src/Pages/cake.js b/src/Pages/cake.js index 4117041..1c757de 100644 --- a/src/Pages/cake.js +++ b/src/Pages/cake.js @@ -331,7 +331,7 @@ function Cake() { {product.name} - ${product.price.toFixed(2)} + ₹{product.price.toFixed(2)} {!quantities[product.id] ? ( <>