From 2cdfae11b2aa630e6d2f0436aa129bfdeedf93d6 Mon Sep 17 00:00:00 2001 From: jrphilo Date: Mon, 13 May 2024 07:37:28 +0200 Subject: [PATCH] fix: remove priceincart Signed-off-by: jrphilo --- components/product/price-in-cart.tsx | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 components/product/price-in-cart.tsx diff --git a/components/product/price-in-cart.tsx b/components/product/price-in-cart.tsx deleted file mode 100644 index 985b438fe..000000000 --- a/components/product/price-in-cart.tsx +++ /dev/null @@ -1,22 +0,0 @@ -const PriceInCart = ({ items }) => { - const totalPrice = items.reduce((sum, item) => sum + item.price, 0); - - return ( -
-
    - {items.map((item, index) => ( -
  • - {item.label} - ${item.price.toFixed(2)} -
  • - ))} -
  • - Total In Cart - ${totalPrice.toFixed(2)} -
  • -
-
- ); -}; - -export default PriceInCart;