diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-08-02 07:19:18 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-08-02 07:19:18 +0000 |
| commit | 3224737f4d714dcf30887b4977263424e4773ec6 (patch) | |
| tree | 88abc4c01397c7b02d1799e82b3e5042f902630b /src-migrate/pages | |
| parent | 5918e5e992d1d6800ecc6641fc3bc18019772750 (diff) | |
| parent | 95d51b30154b09e4105ea011aba8782d74fbf1e8 (diff) | |
Merged in Feature/iman-unchek-cart (pull request #205)
<iman> update unchek cart
Diffstat (limited to 'src-migrate/pages')
| -rw-r--r-- | src-migrate/pages/shop/cart/index.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-migrate/pages/shop/cart/index.tsx b/src-migrate/pages/shop/cart/index.tsx index d28e8c4b..e5e2c5cb 100644 --- a/src-migrate/pages/shop/cart/index.tsx +++ b/src-migrate/pages/shop/cart/index.tsx @@ -31,6 +31,7 @@ const CartPage = () => { const { loadCart, cart, summary } = useCartStore(); const useDivvice = useDevice(); const { setRefreshCart } = useProductCartContext() + useEffect(() => { if (typeof auth === 'object' && !cart) { @@ -108,7 +109,7 @@ const CartPage = () => { <> <div className={style['title']}>Keranjang Belanja</div> <div className='h-2' /> - <div className='flex items-center object-center justify-between mt-2 mb-2 w-3/4'> + <div className={`flex items-center object-center justify-between w-3/4 ${window.scrollY < 200 ? 'border-b-[0px]' : 'border-b-[1px]'} sticky top-[180px] bg-white py-4 border-gray-300 z-50`}> <div className='flex items-center object-center'> {isLoad && ( <Spinner className='my-auto' size='sm' /> @@ -130,7 +131,6 @@ const CartPage = () => { <Tooltip label={clsxm({ 'Tidak ada item yang dipilih': !hasSelected, - 'Terdapat item yang tidak ada harga': hasSelectNoPrice, })} > <Button |
