From 71748842100e833472c56194e57c309539478dd3 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Fri, 4 Aug 2023 14:30:21 +0700
Subject: cr voucher

---
 src/lib/checkout/components/Checkout.jsx | 28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

(limited to 'src/lib/checkout/components/Checkout.jsx')

diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx
index 9ffac61a..5265a794 100644
--- a/src/lib/checkout/components/Checkout.jsx
+++ b/src/lib/checkout/components/Checkout.jsx
@@ -490,7 +490,7 @@ const Checkout = () => {
                     <div className='absolute w-full h-full bg-gray_r-3/40 top-0 left-0 z-50' />
                   )}
 
-                  <div className={`border border-solid mb-5 w-full hover:cursor-pointer  p-4 `}>
+                  <div className={`border border-solid mb-5 w-full hover:cursor-pointer  p-2 pl-4 pr-4 `}>
                     {item.canApply && (
                       <div
                         class='p-2 mb-4 text-sm text-green-800 rounded-lg bg-green-50 dark:text-green-400'
@@ -504,12 +504,20 @@ const Checkout = () => {
                         </p>
                       </div>
                     )}
+                    {!item.canApply && item.applyStatus === 'MPA-HF' && (
+                      <div
+                        class='p-2 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400'
+                        role='alert'
+                      >
+                        <p className='text-xs'>Voucher tidak bisa digabung dengan promo lainya</p>
+                      </div>
+                    )}
                     {!item.canApply && item.applyStatus === 'UM' && (
                       <div
                         class='p-2 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400'
                         role='alert'
                       >
-                        <p>
+                        <p className='text-xs'>
                           Tambah produk{' '}
                           <span className='text-red-500'>{item.manufactureNames}</span> senilai{' '}
                           <span className='text-red-500'>
@@ -527,7 +535,7 @@ const Checkout = () => {
                           class='p-2 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400'
                           role='alert'
                         >
-                          <p>
+                          <p className='text-xs'>
                             Tambah produk{' '}
                             <span className='text-red-500'>{item.manufactureNames}</span> senilai{' '}
                             <span className='text-red-500'>
@@ -545,7 +553,7 @@ const Checkout = () => {
                           class='p-2 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400'
                           role='alert'
                         >
-                          <p>
+                          <p className='text-xs'>
                             Tambah{' '}
                             <span className='text-red-500'>
                               {currencyFormat(item.differenceToApply)}
@@ -554,18 +562,6 @@ const Checkout = () => {
                           </p>
                         </div>
                       )}
-
-                    {!item.canApply &&
-                      item.has_flashsale_products &&
-                      item.apply_status === 'UM' && (
-                        <div
-                          class='p-2 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400'
-                          role='alert'
-                        >
-                          <p>Voucher tidak dapat di gabung dengan</p>
-                        </div>
-                      )}
-
                     <div className={`flex gap-x-3`}>
                       <div className='hidden md:w-[250px] md:block'>
                         <Image src={item.image} alt={item.name} className={`object-cover`} />
-- 
cgit v1.2.3

