From 37ab7c5ac682e3a2ddb4153d4f7cb91593a77fe4 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 31 Oct 2024 16:39:11 +0700
Subject: <iman> update code

---
 .../pengajuan-tempo/component/PengajuanTempo.jsx   | 33 +++++++++++++++++-----
 1 file changed, 26 insertions(+), 7 deletions(-)

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

diff --git a/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx b/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
index b811e736..74dbedf3 100644
--- a/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
+++ b/src/lib/pengajuan-tempo/component/PengajuanTempo.jsx
@@ -1,7 +1,7 @@
 import React from 'react';
 import { useMemo, useState, useEffect, useRef } from 'react';
 import Stepper from './Stepper';
-import InformasiPerusahaan from './informasiPerusahaan';
+import InformasiPerusahaan from './InformasiPerusahaan';
 import KontakPerusahaan from './KontakPerusahaan';
 import Pengiriman from './Pengiriman';
 import Referensi from './Referensi';
@@ -55,25 +55,44 @@ const PengajuanTempo = () => {
   const [buttonSubmitClick, setButtonSubmitClick] = useState(false);
   const stepDivs = [
     <InformasiPerusahaan
+      key='informasi-perusahaan'
       chekValid={notValid}
       buttonSubmitClick={buttonSubmitClick}
     />,
     <KontakPerusahaan
+      key='kontak-perusahaan'
+      chekValid={notValid}
+      buttonSubmitClick={buttonSubmitClick}
+    />,
+    <Pengiriman
+      key='pengiriman'
+      chekValid={notValid}
+      buttonSubmitClick={buttonSubmitClick}
+    />,
+    <Referensi
+      key='referensi'
+      chekValid={notValid}
+      buttonSubmitClick={buttonSubmitClick}
+    />,
+    <Dokumen
+      key='dokumen'
+      chekValid={notValid}
+      buttonSubmitClick={buttonSubmitClick}
+    />,
+    <Konfirmasi
+      key='konfirmasi'
       chekValid={notValid}
       buttonSubmitClick={buttonSubmitClick}
     />,
-    <Pengiriman chekValid={notValid} buttonSubmitClick={buttonSubmitClick} />,
-    <Referensi chekValid={notValid} buttonSubmitClick={buttonSubmitClick} />,
-    <Dokumen chekValid={notValid} buttonSubmitClick={buttonSubmitClick} />,
-    <Konfirmasi chekValid={notValid} buttonSubmitClick={buttonSubmitClick} />,
   ];
+
   const stepDivsError = [
     errors,
     errorsKontakPerson,
     errorsPengiriman,
     errorsSupplier,
     errorsDokumen,
-    <div>Konfirmasi</div>,
+    <div key='konfirmasi'>Konfirmasi</div>,
   ];
   const stepDivsForm = [
     form,
@@ -89,7 +108,7 @@ const PengajuanTempo = () => {
     updateFormPengiriman,
     updateFormSupplier,
     updateFormDokumen,
-    <div>Konfirmasi</div>,
+    <div key='konfirmasi'>Konfirmasi</div>,
   ];
   const stepLabels = [
     'informasi_perusahaan',
-- 
cgit v1.2.3

