From f2451beed670dc697aa2026b2df6ad1ad1e90da2 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 9 Dec 2024 15:00:45 +0700
Subject: <iman> update pengajuan tempo

---
 src/lib/pengajuan-tempo/component/FinishTempo.jsx | 25 +++--------------------
 1 file changed, 3 insertions(+), 22 deletions(-)

(limited to 'src/lib/pengajuan-tempo/component/FinishTempo.jsx')

diff --git a/src/lib/pengajuan-tempo/component/FinishTempo.jsx b/src/lib/pengajuan-tempo/component/FinishTempo.jsx
index 933ede62..bfcd0909 100644
--- a/src/lib/pengajuan-tempo/component/FinishTempo.jsx
+++ b/src/lib/pengajuan-tempo/component/FinishTempo.jsx
@@ -14,7 +14,6 @@ const FinishTempo = ({ query }) => {
   const [transactionData, setTransactionData] = useState();
   const { isDesktop, isMobile } = useDevice();
   const auth = useAuth();
-  console.log('auth', auth);
   const so_order = query?.order_id?.replaceAll('-', '/');
   useEffect(() => {
     const fetchData = async () => {
@@ -27,24 +26,6 @@ const FinishTempo = ({ query }) => {
     fetchData();
   }, [query]);
 
-  // Kirim email ketika komponen ini dimount atau sesuai kondisi
-  const sendEmail = async () => {
-    try {
-      const send = await axios.post(
-        `${process.env.NEXT_PUBLIC_SELF_HOST}/api/shop/finish-checkout?orderName=${query?.order_id}`,
-        {}
-      );
-      if (send.status === 200) {
-        toast.success('Berhasil mengirim rincian pesanan');
-      } else {
-        toast.error('Gagal mengirimkan rincian pesanan');
-      }
-    } catch (error) {
-      console.error(error);
-      toast.error('Gagal mengirimkan rincian pesanan');
-    }
-  };
-
   return (
     <div className='container flex flex-col items-center gap-4'>
       <div
@@ -68,7 +49,7 @@ const FinishTempo = ({ query }) => {
       </div>
       {query?.status == 'finish' && (
         <Image
-          src='/images/ICON-TEMPO.png'
+          src='/images/REGISTRASI-TEMPO.svg'
           alt='Registrasi Tempo'
           width={isMobile ? 300 : 550}
           height={isMobile ? 300 : 550}
@@ -76,7 +57,7 @@ const FinishTempo = ({ query }) => {
       )}
       {query?.status == 'switch-account' && (
         <Image
-          src='/images/REGISTRASI-TEMPO.svg'
+          src='/images/ICON-TEMPO.png'
           alt='Registrasi Tempo'
           width={isMobile ? 300 : 550}
           height={isMobile ? 300 : 550}
@@ -115,7 +96,7 @@ const FinishTempo = ({ query }) => {
       </div>
       <Link
         href={query?.status == 'switch-account' ? `/my/profile` : `/my/tempo/`}
-        className='btn-solid-red rounded-md text-base flex flex-row'
+        className='btn-solid-red rounded-md text-base flex flex-row items-center justify-center'
       >
         {query?.status == 'switch-account'
           ? 'Ubah Akun'
-- 
cgit v1.2.3

