From f0df1a21f6a53baa12a7e44300ac2035adeb7f53 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Wed, 4 Oct 2023 12:05:14 +0700
Subject: mobile version

---
 src/lib/checkout/components/Checkout.jsx | 35 ++++++++++++++++++++------------
 1 file changed, 22 insertions(+), 13 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 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'>
-- 
cgit v1.2.3


From e72c16eb549488e1ed847b022880f542d2a9c525 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Thu, 5 Oct 2023 09:32:12 +0700
Subject: add component list product for cart, quotation, and checkout

---
 src/lib/checkout/components/Checkout.jsx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 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 4739cd18..6b7852f2 100644
--- a/src/lib/checkout/components/Checkout.jsx
+++ b/src/lib/checkout/components/Checkout.jsx
@@ -32,6 +32,7 @@ import BottomPopup from '@/core/components/elements/Popup/BottomPopup'
 import { useQuery } from 'react-query'
 import { gtagPurchase } from '@/core/utils/googleTag'
 import { findVoucher, getVoucher } from '../api/getVoucher'
+import CardProdcuctsList from '@/core/components/elements/Product/cartProductsList'
 
 const SELF_PICKUP_ID = 32
 
@@ -988,7 +989,10 @@ const Checkout = () => {
 
               <div className='p-4'>
                 <div className='font-medium'>Detail Pesanan</div>
-                <table className='table-checkout'>
+                
+                <CardProdcuctsList isLoading={isLoading} products={products} />
+                
+                {/* <table className='table-checkout'>
                   <thead>
                     <tr>
                       <th>Nama Produk</th>
@@ -1148,7 +1152,7 @@ const Checkout = () => {
                       ))
                     )}
                   </tbody>
-                </table>
+                </table> */}
               </div>
             </div>
             <div className='w-1/4 pl-4'>
-- 
cgit v1.2.3


From 760a7199aafb1d7f995611f9b6bca1379dfc4b65 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Thu, 5 Oct 2023 09:54:22 +0700
Subject: hide checkbox if source != cart

---
 src/lib/checkout/components/Checkout.jsx | 1 -
 1 file changed, 1 deletion(-)

(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 6b7852f2..e2c1a85b 100644
--- a/src/lib/checkout/components/Checkout.jsx
+++ b/src/lib/checkout/components/Checkout.jsx
@@ -989,7 +989,6 @@ const Checkout = () => {
 
               <div className='p-4'>
                 <div className='font-medium'>Detail Pesanan</div>
-                
                 <CardProdcuctsList isLoading={isLoading} products={products} />
                 
                 {/* <table className='table-checkout'>
-- 
cgit v1.2.3

