diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-22 10:05:09 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-05-22 10:05:09 +0700 |
| commit | 09cebc9020c4f1995a73305187bc1576e339d183 (patch) | |
| tree | 7617d74533d23277690886709fe6b9d68006814d /src-migrate/modules/cart/components/Summary.tsx | |
| parent | 7d4445bb9bad3d6c945503086a07bd882536e5f6 (diff) | |
<miqdad> disable button when updating checkboxes and change summary design
Diffstat (limited to 'src-migrate/modules/cart/components/Summary.tsx')
| -rw-r--r-- | src-migrate/modules/cart/components/Summary.tsx | 28 |
1 files changed, 8 insertions, 20 deletions
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> ); }; |
