From 13b9b5dd101e6dba13ddcf04aff42cfb4156c4d8 Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Sat, 16 Nov 2024 09:50:43 +0700 Subject: update --- src/lib/pengajuan-tempo/component/FinishTempo.jsx | 18 +++++- src/lib/pengajuan-tempo/component/Konfirmasi.jsx | 74 +++++++++++++++++------ src/lib/tempo/components/Tempo.jsx | 42 ++++++++++--- 3 files changed, 104 insertions(+), 30 deletions(-) (limited to 'src') diff --git a/src/lib/pengajuan-tempo/component/FinishTempo.jsx b/src/lib/pengajuan-tempo/component/FinishTempo.jsx index 1670314d..f4336d8a 100644 --- a/src/lib/pengajuan-tempo/component/FinishTempo.jsx +++ b/src/lib/pengajuan-tempo/component/FinishTempo.jsx @@ -47,8 +47,16 @@ const FinishTempo = ({ query }) => { return (
-
-

+
+

Form Pengajuan Tempo kamu Telah Berhasil Didaftarkan Mohon menunggu hingga Proses Selesai

@@ -60,7 +68,11 @@ const FinishTempo = ({ query }) => { height={isMobile ? 300 : 450} /> -
+
Mohon menunggu untuk verifikasi dokumen dan kelengkapan data yang telah anda berikan. Proses approval pembayaran tempo kamu berhasil atau tidak akan diinfokan melalui email perusahaan / email yang mendaftar diff --git a/src/lib/pengajuan-tempo/component/Konfirmasi.jsx b/src/lib/pengajuan-tempo/component/Konfirmasi.jsx index 80845a8f..78591c48 100644 --- a/src/lib/pengajuan-tempo/component/Konfirmasi.jsx +++ b/src/lib/pengajuan-tempo/component/Konfirmasi.jsx @@ -20,7 +20,10 @@ import { ChevronDownIcon, ChevronUpIcon } from '@heroicons/react/24/outline'; const Konfirmasi = ({ chekValid, buttonSubmitClick }) => { const { control, watch, setValue, getValues } = useForm(); const { isDesktop, isMobile } = useDevice(); - const [isOpen, setIsOpen] = useState(false); + const [isOpenInformasi, setIsOpenInformasi] = useState(true); + const [isOpenKontak, setIsOpenKontak] = useState(false); + const [isOpenPengiriman, setIsOpenPengiriman] = useState(false); + const [isOpenKonfirmasi, setIsOpenKonfirmasi] = useState(false); const [industries, setIndustries] = useState([]); const { formDokumen, @@ -203,56 +206,89 @@ const Konfirmasi = ({ chekValid, buttonSubmitClick }) => { {isMobile && (
-
-

Informasi Perusahaan

+
+
+

Informasi Perusahaan

+ + Pastikan informasi usaha yang anda masukkan sudah sesuai + dengan data perusahaan anda + +
- {isOpen ? ( - + {isOpenInformasi ? ( + setIsOpenInformasi(!isOpenInformasi)} + /> ) : ( - + setIsOpenInformasi(!isOpenInformasi)} + /> )}
- + {isOpenInformasi && } +

Kontak Person

- {isOpen ? ( - + {isOpenKontak ? ( + setIsOpenKontak(!isOpenKontak)} + /> ) : ( - + setIsOpenKontak(!isOpenKontak)} + /> )}
- + {isOpenKontak && } +

Pengiriman

- {isOpen ? ( - + {isOpenPengiriman ? ( + setIsOpenPengiriman(!isOpenPengiriman)} + /> ) : ( - + setIsOpenPengiriman(!isOpenPengiriman)} + /> )}
- + {isOpenPengiriman && } +

Dokumen

- {isOpen ? ( - + {isOpenKonfirmasi ? ( + setIsOpenKonfirmasi(!isOpenKonfirmasi)} + /> ) : ( - + setIsOpenKonfirmasi(!isOpenKonfirmasi)} + /> )}
- + {isOpenKonfirmasi && }
)} diff --git a/src/lib/tempo/components/Tempo.jsx b/src/lib/tempo/components/Tempo.jsx index bfeddfbb..8fb55147 100644 --- a/src/lib/tempo/components/Tempo.jsx +++ b/src/lib/tempo/components/Tempo.jsx @@ -116,7 +116,7 @@ const Tempo = () => { isLoaded={!isLoading} h='fit' w={32} - className='badge-solid-green px-2 text-sm flex items-center justify-center font-thin' + className='badge-solid-green px-1 text-sm flex items-center justify-center font-thin' > {' '} {tempo.paymentTerm} @@ -125,7 +125,7 @@ const Tempo = () => {
-

Limit Tempo Terpakai

+

Kredit Limit Terpakai

{
-

Limit Tempo

+

Sisa Kredit Limit

+ + {currencyFormat(Math.round(parseInt(limitTempo - amountDue)))} + +
+
+

Kredit Limit

{ {invoice.invoiceDateDue} {invoice.amountResidual > 0 ? ( -
- {new Date() > getDueDate(invoice.invoiceDateDue) - ? 'Jatuh Tempo' - : 'Belum Lunas'} -
+ new Date() > getDueDate(invoice.invoiceDateDue) ? ( +
+ Jatuh Tempo +
+ ) : ( +
+ Belum Lunas +
+ ) ) : (
Lunas @@ -304,6 +319,17 @@ const Tempo = () => { {currencyFormat(amountDue)}
+
+

Sisa Kredit Limit

+ + {currencyFormat(Math.round(parseInt(limitTempo - amountDue)))} + +

Limit Tempo