summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-10-26 01:18:24 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-10-26 01:18:24 +0700
commitb8ece41f83e2099e454c886feb8280bf3a9b75d2 (patch)
treee96ebdf091850d0101fd6e44451e764f8f5b8249
parent0ad4392184f269121100d9f1f5515ea23df5f0d0 (diff)
<MIqdad> only show voucher in mobile
-rw-r--r--src-migrate/modules/product-detail/components/ProductDetail.tsx21
1 files changed, 11 insertions, 10 deletions
diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx
index 693d0a93..51b080ef 100644
--- a/src-migrate/modules/product-detail/components/ProductDetail.tsx
+++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx
@@ -291,16 +291,17 @@ const ProductDetail = ({ product }: Props) => {
{/* ===== Kolom kanan: info ===== */}
<div className='md:w-8/12 px-4 md:pl-6'>
<div className='h-6 md:h-0' />
- {/* {isMobile && ( */}
- <div className='text text-sm font-medium'>
- <TicketIcon className='inline text-yellow-300 w-5 h-5' /> Pakai{' '}
- <span className='text-green-600 font-extrabold'>
- {' '}
- Voucher belanja hemat {currencyFormat(discount)}
- </span>{' '}
- saat checkout
- </div>
- {/* )} */}
+ {isMobile && (
+ <div className='text text-sm font-medium'>
+ <TicketIcon className='inline text-yellow-300 w-5 h-5' />{' '}
+ Pakai{' '}
+ <span className='text-green-600 font-extrabold'>
+ {' '}
+ Voucher belanja hemat {currencyFormat(discount)}
+ </span>{' '}
+ saat checkout
+ </div>
+ )}
<h1 className={style['title']}>{product.name}</h1>
<div className='h-3 md:h-0' />
<Information product={product} />