diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-08-14 10:02:38 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-08-14 10:02:38 +0000 |
| commit | c134e679dc9dbac4d58a46b85f155512ffe87f9e (patch) | |
| tree | 356c72d57c3231468e718277097acb7af8f6bf17 /src-migrate/modules | |
| parent | 879fa756d9445c8657e9133938a25593402d1018 (diff) | |
| parent | 08e5b76ba58645929ddeda1830f85f3eaf43969e (diff) | |
Merged in Feature/pickup-service (pull request #237)
Feature/pickup service
Diffstat (limited to 'src-migrate/modules')
| -rw-r--r-- | src-migrate/modules/cart/components/Item.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx index 47893498..272fa622 100644 --- a/src-migrate/modules/cart/components/Item.tsx +++ b/src-migrate/modules/cart/components/Item.tsx @@ -17,11 +17,11 @@ import CartItemSelect from './ItemSelect' type Props = { item: CartItemProps editable?: boolean + selfPicking?: boolean pilihSemuaCart?: boolean } -const CartItem = ({ item, editable = true,}: Props) => { - +const CartItem = ({ item, editable = true, selfPicking}: Props) => { return ( <div className={style.wrapper}> {item.cart_type === 'promotion' && ( @@ -53,6 +53,12 @@ const CartItem = ({ item, editable = true,}: Props) => { <CartItem.Image item={item} /> <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> + )} <CartItem.Name item={item} /> <div className='mt-2 flex justify-between w-full'> |
