From 89f32128f37d99b490de7590e2116a9cfd853f89 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Fri, 22 Dec 2023 17:33:46 +0700
Subject: Update promotion program feature

---
 src-migrate/modules/cart/components/Summary.tsx | 75 +++++++++++++++++++++++++
 1 file changed, 75 insertions(+)
 create mode 100644 src-migrate/modules/cart/components/Summary.tsx

(limited to 'src-migrate/modules/cart/components/Summary.tsx')

diff --git a/src-migrate/modules/cart/components/Summary.tsx b/src-migrate/modules/cart/components/Summary.tsx
new file mode 100644
index 00000000..a835bca9
--- /dev/null
+++ b/src-migrate/modules/cart/components/Summary.tsx
@@ -0,0 +1,75 @@
+import style from '../styles/summary.module.css'
+
+import React from 'react'
+import formatCurrency from '~/common/libs/formatCurrency'
+import clsxm from '~/common/libs/clsxm'
+import { Skeleton } from '@chakra-ui/react'
+import _ from 'lodash'
+
+type Props = {
+  total?: number
+  discount?: number
+  subtotal?: number
+  tax?: number
+  shipping?: number
+  grandTotal?: number
+  isLoaded: boolean
+}
+
+const CartSummary = ({
+  total,
+  discount,
+  subtotal,
+  tax,
+  shipping,
+  grandTotal,
+  isLoaded = false,
+}: Props) => {
+  return (
+    <>
+      <div className='text-h-sm font-medium'>Ringkasan Pesanan</div>
+
+      <div className="h-6" />
+
+      <div className='flex flex-col gap-y-3'>
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={style.label}>Total Belanja</span>
+          <span className={style.value}>Rp {formatCurrency(subtotal || 0)}</span>
+        </Skeleton>
+
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={style.label}>Total Diskon</span>
+          <span className={clsxm(style.value, style.discount)}>- Rp {formatCurrency(discount || 0)}</span>
+        </Skeleton>
+
+        <div className={style.divider} />
+
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={style.label}>Subtotal</span>
+          <span className={style.value}>Rp {formatCurrency(total || 0)}</span>
+        </Skeleton>
+
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={style.label}>Tax 11%</span>
+          <span className={style.value}>Rp {formatCurrency(tax || 0)}</span>
+        </Skeleton>
+
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={style.label}>Biaya Kirim</span>
+          <span className={style.value}>Rp {formatCurrency(shipping || 0)}</span>
+        </Skeleton>
+
+        <div className={style.divider} />
+
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={clsxm(style.label, style.grandTotal)}>
+            Grand Total
+          </span>
+          <span className={style.value}>Rp {formatCurrency(grandTotal || 0)}</span>
+        </Skeleton>
+      </div>
+    </>
+  )
+}
+
+export default CartSummary
\ No newline at end of file
-- 
cgit v1.2.3


From f62b2345f463695ef0f8f79830cd76b6e0332821 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Sat, 13 Jan 2024 10:35:22 +0700
Subject: Refactor src migrate folder

---
 src-migrate/modules/cart/components/Summary.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src-migrate/modules/cart/components/Summary.tsx')

diff --git a/src-migrate/modules/cart/components/Summary.tsx b/src-migrate/modules/cart/components/Summary.tsx
index a835bca9..2e55c8df 100644
--- a/src-migrate/modules/cart/components/Summary.tsx
+++ b/src-migrate/modules/cart/components/Summary.tsx
@@ -1,8 +1,8 @@
 import style from '../styles/summary.module.css'
 
 import React from 'react'
-import formatCurrency from '~/common/libs/formatCurrency'
-import clsxm from '~/common/libs/clsxm'
+import formatCurrency from '~/libs/formatCurrency'
+import clsxm from '~/libs/clsxm'
 import { Skeleton } from '@chakra-ui/react'
 import _ from 'lodash'
 
-- 
cgit v1.2.3


From 5d207f5bc60a0ed5d4adfd9eabd7f6459ccc2d84 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Fri, 8 Mar 2024 10:19:23 +0700
Subject: CR - Keranjang Mobile : informasi harga

---
 src-migrate/modules/cart/components/Summary.tsx | 110 +++++++++++++-----------
 1 file changed, 61 insertions(+), 49 deletions(-)

(limited to 'src-migrate/modules/cart/components/Summary.tsx')

diff --git a/src-migrate/modules/cart/components/Summary.tsx b/src-migrate/modules/cart/components/Summary.tsx
index 2e55c8df..1e76d4fa 100644
--- a/src-migrate/modules/cart/components/Summary.tsx
+++ b/src-migrate/modules/cart/components/Summary.tsx
@@ -1,20 +1,20 @@
-import style from '../styles/summary.module.css'
+import style from '../styles/summary.module.css';
 
-import React from 'react'
-import formatCurrency from '~/libs/formatCurrency'
-import clsxm from '~/libs/clsxm'
-import { Skeleton } from '@chakra-ui/react'
-import _ from 'lodash'
+import React from 'react';
+import formatCurrency from '~/libs/formatCurrency';
+import clsxm from '~/libs/clsxm';
+import { Skeleton } from '@chakra-ui/react';
+import _ from 'lodash';
 
 type Props = {
-  total?: number
-  discount?: number
-  subtotal?: number
-  tax?: number
-  shipping?: number
-  grandTotal?: number
-  isLoaded: boolean
-}
+  total?: number;
+  discount?: number;
+  subtotal?: number;
+  tax?: number;
+  shipping?: number;
+  grandTotal?: number;
+  isLoaded: boolean;
+};
 
 const CartSummary = ({
   total,
@@ -27,49 +27,61 @@ const CartSummary = ({
 }: Props) => {
   return (
     <>
-      <div className='text-h-sm font-medium'>Ringkasan Pesanan</div>
-
-      <div className="h-6" />
+      <div className='text-h-sm font-medium hidden md:block'>
+        Ringkasan Pesanan
+      </div>
 
-      <div className='flex flex-col gap-y-3'>
-        <Skeleton isLoaded={isLoaded} className={style.line}>
-          <span className={style.label}>Total Belanja</span>
-          <span className={style.value}>Rp {formatCurrency(subtotal || 0)}</span>
-        </Skeleton>
+      <div className='h-6' />
 
-        <Skeleton isLoaded={isLoaded} className={style.line}>
-          <span className={style.label}>Total Diskon</span>
-          <span className={clsxm(style.value, style.discount)}>- Rp {formatCurrency(discount || 0)}</span>
-        </Skeleton>
+      <div className='hidden md:block'>
+        <div className='flex flex-col gap-y-3'>
+          <Skeleton isLoaded={isLoaded} className={style.line}>
+            <span className={style.label}>Total Belanja</span>
+            <span className={style.value}>
+              Rp {formatCurrency(subtotal || 0)}
+            </span>
+          </Skeleton>
 
-        <div className={style.divider} />
+          <Skeleton isLoaded={isLoaded} className={style.line}>
+            <span className={style.label}>Total Diskon</span>
+            <span className={clsxm(style.value, style.discount)}>
+              - Rp {formatCurrency(discount || 0)}
+            </span>
+          </Skeleton>
 
-        <Skeleton isLoaded={isLoaded} className={style.line}>
-          <span className={style.label}>Subtotal</span>
-          <span className={style.value}>Rp {formatCurrency(total || 0)}</span>
-        </Skeleton>
+          <div className={style.divider} />
 
-        <Skeleton isLoaded={isLoaded} className={style.line}>
-          <span className={style.label}>Tax 11%</span>
-          <span className={style.value}>Rp {formatCurrency(tax || 0)}</span>
-        </Skeleton>
+          <Skeleton isLoaded={isLoaded} className={style.line}>
+            <span className={style.label}>Subtotal</span>
+            <span className={style.value}>Rp {formatCurrency(total || 0)}</span>
+          </Skeleton>
 
-        <Skeleton isLoaded={isLoaded} className={style.line}>
-          <span className={style.label}>Biaya Kirim</span>
-          <span className={style.value}>Rp {formatCurrency(shipping || 0)}</span>
-        </Skeleton>
+          <Skeleton isLoaded={isLoaded} className={style.line}>
+            <span className={style.label}>Tax 11%</span>
+            <span className={style.value}>Rp {formatCurrency(tax || 0)}</span>
+          </Skeleton>
 
-        <div className={style.divider} />
+          <Skeleton isLoaded={isLoaded} className={style.line}>
+            <span className={style.label}>Biaya Kirim</span>
+            <span className={style.value}>
+              Rp {formatCurrency(shipping || 0)}
+            </span>
+          </Skeleton>
 
-        <Skeleton isLoaded={isLoaded} className={style.line}>
-          <span className={clsxm(style.label, style.grandTotal)}>
-            Grand Total
-          </span>
-          <span className={style.value}>Rp {formatCurrency(grandTotal || 0)}</span>
-        </Skeleton>
+          <div className={style.divider} />
+        </div>
       </div>
+
+      <Skeleton isLoaded={isLoaded} className={style.line}>
+        <span className={clsxm(style.label, style.grandTotal)}>
+          Grand Total
+        </span>
+        <span className={style.value}>
+          Rp {formatCurrency(grandTotal || 0)}
+        </span>
+      </Skeleton>
     </>
-  )
-}
+  );
+};
 
-export default CartSummary
\ No newline at end of file
+export default CartSummary;
-- 
cgit v1.2.3


From 9a52d9f835e2f30480142c6197fdf14b3fee5ead Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Tue, 12 Mar 2024 09:17:01 +0700
Subject: feedback kerajang di mobile

---
 src-migrate/modules/cart/components/Summary.tsx | 110 +++++++++++-------------
 1 file changed, 49 insertions(+), 61 deletions(-)

(limited to 'src-migrate/modules/cart/components/Summary.tsx')

diff --git a/src-migrate/modules/cart/components/Summary.tsx b/src-migrate/modules/cart/components/Summary.tsx
index 1e76d4fa..2e55c8df 100644
--- a/src-migrate/modules/cart/components/Summary.tsx
+++ b/src-migrate/modules/cart/components/Summary.tsx
@@ -1,20 +1,20 @@
-import style from '../styles/summary.module.css';
+import style from '../styles/summary.module.css'
 
-import React from 'react';
-import formatCurrency from '~/libs/formatCurrency';
-import clsxm from '~/libs/clsxm';
-import { Skeleton } from '@chakra-ui/react';
-import _ from 'lodash';
+import React from 'react'
+import formatCurrency from '~/libs/formatCurrency'
+import clsxm from '~/libs/clsxm'
+import { Skeleton } from '@chakra-ui/react'
+import _ from 'lodash'
 
 type Props = {
-  total?: number;
-  discount?: number;
-  subtotal?: number;
-  tax?: number;
-  shipping?: number;
-  grandTotal?: number;
-  isLoaded: boolean;
-};
+  total?: number
+  discount?: number
+  subtotal?: number
+  tax?: number
+  shipping?: number
+  grandTotal?: number
+  isLoaded: boolean
+}
 
 const CartSummary = ({
   total,
@@ -27,61 +27,49 @@ const CartSummary = ({
 }: Props) => {
   return (
     <>
-      <div className='text-h-sm font-medium hidden md:block'>
-        Ringkasan Pesanan
-      </div>
+      <div className='text-h-sm font-medium'>Ringkasan Pesanan</div>
 
-      <div className='h-6' />
+      <div className="h-6" />
 
-      <div className='hidden md:block'>
-        <div className='flex flex-col gap-y-3'>
-          <Skeleton isLoaded={isLoaded} className={style.line}>
-            <span className={style.label}>Total Belanja</span>
-            <span className={style.value}>
-              Rp {formatCurrency(subtotal || 0)}
-            </span>
-          </Skeleton>
+      <div className='flex flex-col gap-y-3'>
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={style.label}>Total Belanja</span>
+          <span className={style.value}>Rp {formatCurrency(subtotal || 0)}</span>
+        </Skeleton>
 
-          <Skeleton isLoaded={isLoaded} className={style.line}>
-            <span className={style.label}>Total Diskon</span>
-            <span className={clsxm(style.value, style.discount)}>
-              - Rp {formatCurrency(discount || 0)}
-            </span>
-          </Skeleton>
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={style.label}>Total Diskon</span>
+          <span className={clsxm(style.value, style.discount)}>- Rp {formatCurrency(discount || 0)}</span>
+        </Skeleton>
 
-          <div className={style.divider} />
+        <div className={style.divider} />
 
-          <Skeleton isLoaded={isLoaded} className={style.line}>
-            <span className={style.label}>Subtotal</span>
-            <span className={style.value}>Rp {formatCurrency(total || 0)}</span>
-          </Skeleton>
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={style.label}>Subtotal</span>
+          <span className={style.value}>Rp {formatCurrency(total || 0)}</span>
+        </Skeleton>
 
-          <Skeleton isLoaded={isLoaded} className={style.line}>
-            <span className={style.label}>Tax 11%</span>
-            <span className={style.value}>Rp {formatCurrency(tax || 0)}</span>
-          </Skeleton>
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={style.label}>Tax 11%</span>
+          <span className={style.value}>Rp {formatCurrency(tax || 0)}</span>
+        </Skeleton>
 
-          <Skeleton isLoaded={isLoaded} className={style.line}>
-            <span className={style.label}>Biaya Kirim</span>
-            <span className={style.value}>
-              Rp {formatCurrency(shipping || 0)}
-            </span>
-          </Skeleton>
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={style.label}>Biaya Kirim</span>
+          <span className={style.value}>Rp {formatCurrency(shipping || 0)}</span>
+        </Skeleton>
 
-          <div className={style.divider} />
-        </div>
-      </div>
+        <div className={style.divider} />
 
-      <Skeleton isLoaded={isLoaded} className={style.line}>
-        <span className={clsxm(style.label, style.grandTotal)}>
-          Grand Total
-        </span>
-        <span className={style.value}>
-          Rp {formatCurrency(grandTotal || 0)}
-        </span>
-      </Skeleton>
+        <Skeleton isLoaded={isLoaded} className={style.line}>
+          <span className={clsxm(style.label, style.grandTotal)}>
+            Grand Total
+          </span>
+          <span className={style.value}>Rp {formatCurrency(grandTotal || 0)}</span>
+        </Skeleton>
+      </div>
     </>
-  );
-};
+  )
+}
 
-export default CartSummary;
+export default CartSummary
\ No newline at end of file
-- 
cgit v1.2.3

