diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-08-15 04:29:58 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-08-15 04:29:58 +0000 |
| commit | b0cf5752c1f11a88c67cbf580cc24b5b329295f0 (patch) | |
| tree | 81b1d6424f7eb40e092112ef53addf9b072a6059 | |
| parent | c134e679dc9dbac4d58a46b85f155512ffe87f9e (diff) | |
| parent | ad82ceb618565eec7b1e955c8ba12243d26253f1 (diff) | |
Merged in Feature/pickup-service (pull request #238)
<iman> update view
| -rw-r--r-- | src-migrate/modules/cart/components/Item.tsx | 6 | ||||
| -rw-r--r-- | src/lib/checkout/components/Checkout.jsx | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx index 272fa622..a9b2d968 100644 --- a/src-migrate/modules/cart/components/Item.tsx +++ b/src-migrate/modules/cart/components/Item.tsx @@ -22,6 +22,8 @@ type Props = { } const CartItem = ({ item, editable = true, selfPicking}: Props) => { + console.log("item",item) + console.log("selfPicking",selfPicking) return ( <div className={style.wrapper}> {item.cart_type === 'promotion' && ( @@ -55,8 +57,8 @@ const CartItem = ({ item, editable = true, selfPicking}: Props) => { <div className={style.details}> {/* disini */} {selfPicking && (item.is_in_bu) && (item.on_hand_qty >= item.quantity) && ( - <div className='text-xs text-red-500'> - Barang ini bisa di pickup maksimal pukul 16.00 + <div className='text-[10px] text-red-500 italic'> + *Barang ini bisa di pickup maksimal pukul 16.00 </div> )} <CartItem.Name item={item} /> diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx index 5f771f41..6deba693 100644 --- a/src/lib/checkout/components/Checkout.jsx +++ b/src/lib/checkout/components/Checkout.jsx @@ -1004,7 +1004,7 @@ const Checkout = () => { <div className='p-4 flex flex-col gap-y-4'> {!!products && snakecaseKeys(products).map((item, index) => ( - <CartItem key={index} item={item} editable={false} /> + <CartItem key={index} item={item} editable={false} selfPicking={selectedExpedisi === '1,32' ? true : false}/> ))} </div> |
