diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-12-09 15:00:45 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-12-09 15:00:45 +0700 |
| commit | f2451beed670dc697aa2026b2df6ad1ad1e90da2 (patch) | |
| tree | e25ff3230b6878ff037216b6cd1dad527440dfb8 /src/lib/pengajuan-tempo/component/FinishTempo.jsx | |
| parent | e9cd13307f0095dc4edc5048752675d80c551564 (diff) | |
<iman> update pengajuan tempo
Diffstat (limited to 'src/lib/pengajuan-tempo/component/FinishTempo.jsx')
| -rw-r--r-- | src/lib/pengajuan-tempo/component/FinishTempo.jsx | 25 |
1 files changed, 3 insertions, 22 deletions
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' |
