From 6bbf1dbd94355f34f58f4b72f134f3dbeac776aa Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Sat, 23 Nov 2024 11:55:59 +0700 Subject: update tempo --- src/lib/pengajuan-tempo/component/Dokumen.jsx | 110 ++++-- src/lib/pengajuan-tempo/component/FinishTempo.jsx | 23 +- .../pengajuan-tempo/component/PengajuanTempo.jsx | 228 ++++++++++- src/lib/pengajuan-tempo/component/Pengiriman.jsx | 438 ++++++++++++--------- src/lib/pengajuan-tempo/component/Referensi.jsx | 2 +- .../component/informasiPerusahaan.jsx | 324 +++++++++------ src/pages/pengajuan-tempo/index.jsx | 20 + 7 files changed, 780 insertions(+), 365 deletions(-) (limited to 'src') diff --git a/src/lib/pengajuan-tempo/component/Dokumen.jsx b/src/lib/pengajuan-tempo/component/Dokumen.jsx index 0873df66..8391de4a 100644 --- a/src/lib/pengajuan-tempo/component/Dokumen.jsx +++ b/src/lib/pengajuan-tempo/component/Dokumen.jsx @@ -43,8 +43,8 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { } // Check for file size - if (file.size > 2000000) { - toast.error('Maksimal ukuran file adalah 2MB', { duration: 4000 }); + if (file.size > 500000) { + toast.error('Maksimal ukuran file adalah 500Kb', { duration: 4000 }); event.target.value = ''; return; @@ -72,6 +72,10 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { const dokumenTempatBekerjaRef = useRef(null); useEffect(() => { + // window.scrollTo({ + // top: 0, + // behavior: 'smooth', + // }); const loadIndustries = async () => { if (!isFormValid) { const options = { @@ -79,6 +83,7 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { block: 'center', }; if (errorsDokumen.dokumenNib && dokumenNibRef.current) { + console.log('errorsDokumen', errorsDokumen); dokumenNibRef.current.scrollIntoView(options); return; } @@ -144,7 +149,10 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => {
-
+
-
+
-
+
@@ -244,7 +256,6 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { id='dokumenSppkp' name='dokumenSppkp' type='file' - ref={dokumenSppkpRef} className='hidden' aria-invalid={errorsDokumen.dokumenSppkp} onChange={handleInputChange} @@ -262,7 +273,10 @@ const Dokumen = ({ chekValid, buttonSubmitClick, isKonfirmasi }) => { )}
-
+
-
+
-
+
-
+
-
+
-
+