diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-20 10:10:39 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-10-20 10:10:39 +0700 |
| commit | b23d224aa285559d3d4fdfdad4d1f5bc91604b61 (patch) | |
| tree | fc97dbf5d2fd17f840211f8bba040ad702e28561 /src/lib | |
| parent | e685337959f292615f3321d901a5cd7b377235a6 (diff) | |
<Miqdad> show inc ppn desktop
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx index 5912f837..785101bf 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -104,7 +104,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { alt='Pick Up Now' width={83} height={24} - className='drop-shadow-sm' + // className='drop-shadow-sm' loading='eager' /> </Link> @@ -232,7 +232,16 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { </div> <div className='text-danger-500 font-semibold mb-2'> {product?.lowestPrice.priceDiscount > 0 ? ( - currencyFormat(product?.lowestPrice.priceDiscount) + <> + {currencyFormat(product?.lowestPrice.priceDiscount)} + <div className='text-gray_r-9 text-[10px] font-normal mt-2'> + Inc. PPN:{' '} + {currencyFormat( + product.lowestPrice.priceDiscount * + process.env.NEXT_PUBLIC_PPN + )} + </div> + </> ) : ( <a rel='noopener noreferrer' |
