From 09cebc9020c4f1995a73305187bc1576e339d183 Mon Sep 17 00:00:00 2001
From: Miqdad <ahmadmiqdad27@gmail.com>
Date: Thu, 22 May 2025 10:05:09 +0700
Subject: <miqdad> disable button when updating checkboxes and change summary
 design

---
 src-migrate/modules/cart/components/Summary.tsx | 28 +++++++------------------
 1 file changed, 8 insertions(+), 20 deletions(-)

(limited to 'src-migrate/modules/cart/components/Summary.tsx')

diff --git a/src-migrate/modules/cart/components/Summary.tsx b/src-migrate/modules/cart/components/Summary.tsx
index b4fbab6b..68db6323 100644
--- a/src-migrate/modules/cart/components/Summary.tsx
+++ b/src-migrate/modules/cart/components/Summary.tsx
@@ -40,8 +40,6 @@ const CartSummary = ({
     grandTotal: 0,
   });
 
-  const bgHighlight = useColorModeValue('red.50', 'red.900');
-
   // This fixes hydration issues by ensuring the component only renders fully after mounting
   useEffect(() => {
     setIsMounted(true);
@@ -156,15 +154,7 @@ const CartSummary = ({
   } = summaryValues;
 
   return (
-    <Box
-      className={style.summaryContainer}
-      p={4}
-      borderWidth='1px'
-      borderRadius='lg'
-      boxShadow='sm'
-      position='sticky'
-      top='170px'
-    >
+    <div className={style.summaryContainer}>
       <Text fontSize='lg' fontWeight='medium' mb={4}>
         Ringkasan Pesanan
       </Text>
@@ -208,17 +198,15 @@ const CartSummary = ({
         <div className={style.divider} />
 
         <Skeleton isLoaded={isLoaded}>
-          <Box className={style.line} p={2} borderRadius='md' bg={bgHighlight}>
-            <span className={clsxm(style.label, style.grandTotal)}>
-              Grand Total
-            </span>
-            <span className={clsxm(style.value, style.grandTotalValue)}>
-              Rp {formatCurrency(displayGrandTotal)}
-            </span>
-          </Box>
+          <span className={clsxm(style.label, style.grandTotal)}>
+            Grand Total
+          </span>
+          <span className={clsxm(style.value, style.grandTotalValue)}>
+            Rp {formatCurrency(displayGrandTotal)}
+          </span>
         </Skeleton>
       </div>
-    </Box>
+    </div>
   );
 };
 
-- 
cgit v1.2.3

