diff options
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'> |
