diff --git a/index.html b/index.html index bf8019c..9f8b58f 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,21 @@ Sound Sphere + +
diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..387c35b --- /dev/null +++ b/public/404.html @@ -0,0 +1,28 @@ + + + + + + Sound Sphere + + + + \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index d139e61..3657ec0 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -16,9 +16,6 @@ export default function App() { // State for product data. const [productData, setProductData] = useState([]); - // State for user cart. - const [cartItems, setCartItems] = useState([]); - useEffect(() => { fetch('./data.json') diff --git a/src/components/cart/Cart.jsx b/src/components/cart/Cart.jsx index 96caac4..1238fac 100644 --- a/src/components/cart/Cart.jsx +++ b/src/components/cart/Cart.jsx @@ -16,7 +16,9 @@ export default function Cart() { You haven't added anything in the cart yet.

) : ( -
+
{ cartItems.map(item => ( @@ -25,7 +27,7 @@ export default function Cart() { }
-
+
diff --git a/src/components/cart/CartItem.jsx b/src/components/cart/CartItem.jsx index c8bd728..800451b 100644 --- a/src/components/cart/CartItem.jsx +++ b/src/components/cart/CartItem.jsx @@ -29,7 +29,7 @@ export default function CartItem({ item }) { const inWishlist = isItemInWishlist(itemName); return ( -
+
{itemName}