From 2ddef689b071a0fe6b698431a00ea49bc3383743 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 9 Mar 2026 10:11:31 +0000 Subject: [PATCH] Update src/app/cart/page.tsx --- src/app/cart/page.tsx | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/src/app/cart/page.tsx b/src/app/cart/page.tsx index 260bce8..0d71183 100644 --- a/src/app/cart/page.tsx +++ b/src/app/cart/page.tsx @@ -19,21 +19,13 @@ interface CartItem { const CartPage = () => { const [cartItems, setCartItems] = useState([ { - id: "handbag-1", - name: "Italian Leather Tote", - price: 285, + id: "handbag-1", name: "Italian Leather Tote", price: 285, quantity: 1, - imageSrc: "http://img.b2bpic.net/free-photo/view-women-s-purse-tiles-with-mediterranean-aesthetics_23-2150916670.jpg?_wi=8", - imageAlt: "Italian leather tote bag", - }, + imageSrc: "http://img.b2bpic.net/free-photo/view-women-s-purse-tiles-with-mediterranean-aesthetics_23-2150916670.jpg", imageAlt: "Italian leather tote bag"}, { - id: "handbag-2", - name: "Silk-Lined Crossbody", - price: 195, + id: "handbag-2", name: "Silk-Lined Crossbody", price: 195, quantity: 2, - imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-stylish-woman-walking-street-pink-coat-holding-purse-hands-listening-music_285396-1196.jpg?_wi=7", - imageAlt: "Elegant crossbody bag", - }, + imageSrc: "http://img.b2bpic.net/free-photo/young-beautiful-stylish-woman-walking-street-pink-coat-holding-purse-hands-listening-music_285396-1196.jpg", imageAlt: "Elegant crossbody bag"}, ]); const navItems = [ @@ -176,7 +168,7 @@ const CartPage = () => { {/* Item Total and Remove */}

- Total: ${(item.price * item.quantity).toFixed(2)} + Total: ${((item.price * item.quantity) as number).toFixed(2)}

-- 2.49.1