summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-10-28 21:06:29 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-10-28 21:06:29 +0700
commitaecf3630066fda25429f25efea97f6d65b7d823c (patch)
treec50a12a687f5635a9fd2c1555a738c4bb96c9dc7
parent15b36f567def625769a327f11b90743fb5cdbba9 (diff)
<MIqdad> add condition and styling
-rw-r--r--src/lib/product/components/Product/ProductDesktopVariant.jsx15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/lib/product/components/Product/ProductDesktopVariant.jsx b/src/lib/product/components/Product/ProductDesktopVariant.jsx
index 86e95ddc..b2f16925 100644
--- a/src/lib/product/components/Product/ProductDesktopVariant.jsx
+++ b/src/lib/product/components/Product/ProductDesktopVariant.jsx
@@ -664,13 +664,16 @@ const ProductDesktopVariant = ({
/>
Penawaran Harga Instan
</Button>
- <div className='mt-3'>
- <div className='inline-flex items-center'>
- <span className='text-sm font-semibold'>
- Pakai Voucher {currencyFormat(discount)}
- </span>
+ {discount > 0 && (product?.isFlashSale ?? 0) < 1 && (
+ <div className='mt-3'>
+ <div className='inline-flex items-center border border-red-100 p-3 bg-orange-100 rounded-md'>
+ <span className='text-sm font-semibold'>
+ Pakai Voucher Hemat {currencyFormat(discount)} & potongan
+ ongkir hingga Rp. 20.000
+ </span>
+ </div>
</div>
- </div>
+ )}
<div className='flex py-5'>
<div className='flex gap-x-5 items-center justify-center'>
<Button