diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-08-23 06:28:03 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-08-23 06:28:03 +0000 |
| commit | a6be7fe1690ce5ad4479e9ff4bc4aa795316eacf (patch) | |
| tree | fb0974e6f605069466633d7ccc51c640f6c31e35 /src-migrate/modules | |
| parent | 8c64624326a18ecdd2de25731b2f579ea4d2b00d (diff) | |
| parent | 6111e1115ffba4ef336dfb763b3fd23e52b6668b (diff) | |
Merged in Feature/pickup-service (pull request #262)
Feature/pickup service
Diffstat (limited to 'src-migrate/modules')
| -rw-r--r-- | src-migrate/modules/cart/components/Item.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx index 47893498..6ffbb524 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,11 @@ const CartItem = ({ item, editable = true,}: Props) => { <CartItem.Image item={item} /> <div className={style.details}> + {(item.is_in_bu) && (item.on_hand_qty >= item.quantity) && ( + <div className='text-[10px] text-red-500 italic'> + *Barang ini bisa di pickup maksimal pukul 16.00 + </div> + )} <CartItem.Name item={item} /> <div className='mt-2 flex justify-between w-full'> |
