From 0ca62faf89775496320025c170c942b2cb3e1a20 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Sat, 8 Apr 2023 10:12:31 +0700 Subject: update theme color --- src/lib/cart/components/Cart.jsx | 43 ++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 26 deletions(-) (limited to 'src/lib/cart/components') diff --git a/src/lib/cart/components/Cart.jsx b/src/lib/cart/components/Cart.jsx index 1131fed7..5b8a4690 100644 --- a/src/lib/cart/components/Cart.jsx +++ b/src/lib/cart/components/Cart.jsx @@ -170,16 +170,13 @@ const Cart = () => { {products?.map((product) => (
- + checked={product?.selected} + className='mr-2 accent-danger-500 w-4' + /> + { {currencyFormat(product?.price?.priceDiscount)}
-
+
{currencyFormat(product?.price?.priceDiscount * product?.quantity)}
@@ -255,7 +252,7 @@ const Cart = () => {
Total: - +   {selectedProduct().length > 0 ? currencyFormat(totalPriceBeforeTax - totalDiscountAmount + totalTaxAmount) @@ -319,18 +316,12 @@ const Cart = () => { {products?.map((product) => ( - + checked={product?.selected} + className='accent-danger-500 w-4' + /> { product?.parent.name, product?.parent.id )} - className='w-[30%] flex-shrink-0' + className='w-[20%] flex-shrink-0' > {product?.name}
@@ -391,7 +382,7 @@ const Cart = () => {
-
+
{currencyFormat(product?.price?.priceDiscount * product?.quantity)}
@@ -429,7 +420,7 @@ const Cart = () => {
Total: - +   {selectedProduct().length > 0 ? currencyFormat(totalPriceBeforeTax - totalDiscountAmount + totalTaxAmount) -- cgit v1.2.3