diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-04-12 09:31:19 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-04-12 09:31:19 +0700 |
| commit | b42f03ff7b8f8da403b83aa676328533564b928e (patch) | |
| tree | 86cbed0f09219a5032041f6f9cdc8c0a3b5c61b6 /src/lib/variant/components | |
| parent | 5c66bf0e42f5b414d701abe93fb634321f94aff8 (diff) | |
| parent | 9f0a5b8260e3f1509de9596ee940b748c3b6600f (diff) | |
Merge branch 'master' of bitbucket.org:altafixco/next-indoteknik
Diffstat (limited to 'src/lib/variant/components')
| -rw-r--r-- | src/lib/variant/components/VariantCard.jsx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/lib/variant/components/VariantCard.jsx b/src/lib/variant/components/VariantCard.jsx index 8161473d..8cd70bc0 100644 --- a/src/lib/variant/components/VariantCard.jsx +++ b/src/lib/variant/components/VariantCard.jsx @@ -49,10 +49,18 @@ const VariantCard = ({ product, openOnClick = true, buyMore = false }) => { )} </div> <p className='text-caption-2 text-gray_r-11 mt-1'> - {currencyFormat(product.price.priceDiscount)} × {product.quantity} Barang + {product.price.priceDiscount > 0 + ? currencyFormat(product.price.priceDiscount) + ' × ' + product.quantity + ' Barang' + : ''} </p> <p className='text-caption-2 text-gray_r-12 font-bold mt-2'> - {currencyFormat(product.quantity * product.price.priceDiscount)} + {product.price.priceDiscount > 0 ? ( + currencyFormat(product.quantity * product.price.priceDiscount) + ) : ( + <a href='https://wa.me/628128080622' className='underline text-danger-500'> + Call For Price{' '} + </a> + )} </p> </div> </div> |
