diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-10-04 12:05:14 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-10-04 12:05:14 +0700 |
| commit | f0df1a21f6a53baa12a7e44300ac2035adeb7f53 (patch) | |
| tree | f8e8f699fd7f60b17394ec0588b8b99a6b40996f /src/lib/checkout/components | |
| parent | 5624207e88c272a8edde9c334393bca5ac20d3fc (diff) | |
mobile version
Diffstat (limited to 'src/lib/checkout/components')
| -rw-r--r-- | src/lib/checkout/components/Checkout.jsx | 35 |
1 files changed, 22 insertions, 13 deletions
diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx index 6d2f62e0..4739cd18 100644 --- a/src/lib/checkout/components/Checkout.jsx +++ b/src/lib/checkout/components/Checkout.jsx @@ -633,8 +633,11 @@ const Checkout = () => { Berakhir dalam{' '} <span className='text-red-600'>{item.remainingTime}</span> lagi,{' '} </div> - <div className='text-sm ml-2 text-red-600' onClick={() => handlingTnC(item)} > - Baca S&K + <div + className='text-sm ml-2 text-red-600' + onClick={() => handlingTnC(item)} + > + Baca S&K </div> </div> </div> @@ -1045,21 +1048,27 @@ const Checkout = () => { /> </td> <td> - {product?.price?.discountPercentage > 0 && ( - <div className='flex gap-x-1 items-center justify-center mt-3'> - <div className='text-gray_r-11 line-through text-caption-1'> - {currencyFormat(product?.price?.price)} + {product?.hasFlashsale ? ( + <> + <div className='flex gap-x-1 items-center justify-center mt-3'> + <div className='text-gray_r-11 line-through text-caption-1'> + {currencyFormat(product?.price?.price)} + </div> + <div className='badge-solid-red'> + {product?.price?.discountPercentage}% + </div> </div> - <div className='badge-solid-red'> - {product?.price?.discountPercentage}% + <div className='font-normal mt-1'> + {currencyFormat(product?.price?.priceDiscount)} </div> + </> + ) : ( + <div className='font-normal mt-1'> + {product.price.priceDiscount > 0 + ? currencyFormat(product?.price?.priceDiscount) + : 'Call For Price'} </div> )} - <div className='font-normal mt-1'> - {product.price.priceDiscount > 0 - ? currencyFormat(product?.price?.priceDiscount) - : 'Call For Price'} - </div> </td> <td> <div className='text-danger-500 font-medium'> |
