From d3d24376d1aafb2a7918c7f6dc1b85fb4f1f411f Mon Sep 17 00:00:00 2001 From: Buyankhuu Tsolmonkhuu Date: Thu, 16 Nov 2023 13:28:10 -0800 Subject: [PATCH] chore:style --- src/app/cart/page.tsx | 8 ++++---- src/app/cart/style.tsx | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/app/cart/page.tsx b/src/app/cart/page.tsx index e55659c0..7b110c5a 100644 --- a/src/app/cart/page.tsx +++ b/src/app/cart/page.tsx @@ -51,7 +51,7 @@ export default function OrderPage() { const [Cart, setCart] = useState([]); const router = useRouter(); async function fetchProducts() { - const data = (await arrayOfFavorites()) as Product[]; //change the function to grab the cartItems as products + const data = (await arrayOfFavorites()) as Product[]; // change the function to grab the cartItems as products setCart(data); } useEffect(() => { @@ -89,7 +89,7 @@ export default function OrderPage() { clickFunctions({ fav: favorite })}} <- change to remove item entirely + // {onClick={() => clickFunctions({ fav: favorite })}} <- change to remove item entirely > @@ -112,7 +112,7 @@ export default function OrderPage() { Order Total 10 @@ -120,7 +120,7 @@ export default function OrderPage() { Check Out diff --git a/src/app/cart/style.tsx b/src/app/cart/style.tsx index dc85b928..dfd6a031 100644 --- a/src/app/cart/style.tsx +++ b/src/app/cart/style.tsx @@ -1,8 +1,7 @@ import styled, { createGlobalStyle } from 'styled-components'; -import COLORS from '../../styles/colors'; - import { Trash2 } from 'react-feather'; +import COLORS from '../../styles/colors'; import NavBar from '../../components/NavBar';