diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-11-12 12:12:16 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-11-12 12:12:16 +0700 |
| commit | 82bcfbeab8a79b74caad00a57f4aeb3591d838b2 (patch) | |
| tree | d06fb9adc4bebb71f8e37d35d1f65edc8fad2b72 /src-migrate/modules/cart/components/Item.tsx | |
| parent | 49b579edf67297031a0c867019d1089c4369a523 (diff) | |
<Miqdad> cart smentaracr_prod_card
Diffstat (limited to 'src-migrate/modules/cart/components/Item.tsx')
| -rw-r--r-- | src-migrate/modules/cart/components/Item.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx index a3aa2ac2..3a02d37c 100644 --- a/src-migrate/modules/cart/components/Item.tsx +++ b/src-migrate/modules/cart/components/Item.tsx @@ -15,6 +15,8 @@ import CartItemAction from './ItemAction'; import CartItemPromo from './ItemPromo'; import CartItemSelect from './ItemSelect'; +import { BadgePercent } from 'lucide-react'; + type Props = { item: CartItemProps; editable?: boolean; @@ -80,6 +82,12 @@ const CartItem = ({ item, editable = true, selfPicking }: Props) => { </div> )} <CartItem.Name item={item} /> + {item.cart_type === 'product' && item.voucher_pasti_hemat && ( + <span className={style.voucherBadge}> + <BadgePercent size={14} /> + Bisa pakai voucher pasti hemat + </span> + )} <div className='mt-2 flex justify-between w-full'> <div className='flex flex-col gap-y-1'> |
