From ed9e41e4d244935fbbf8a883ecec0f603ff92186 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Tue, 30 Sep 2025 13:51:55 +0700 Subject: [PATCH] feat: update fixing bugs --- components/form/sign-up.tsx | 122 +++++++++++++++++++++-- next.config.mjs | 8 +- service/agenda-setting/agenda-setting.ts | 99 ++++++++++++++++++ service/media-tracking/media-tracking.ts | 48 +++++++++ service/planning/planning.ts | 22 ++++ 5 files changed, 282 insertions(+), 17 deletions(-) create mode 100644 service/agenda-setting/agenda-setting.ts create mode 100644 service/media-tracking/media-tracking.ts create mode 100644 service/planning/planning.ts diff --git a/components/form/sign-up.tsx b/components/form/sign-up.tsx index 8b4f9b7..e4544ed 100644 --- a/components/form/sign-up.tsx +++ b/components/form/sign-up.tsx @@ -69,6 +69,13 @@ export default function SignUp() { const [namaTenant, setNamaTenant] = useState(""); const [tenantPassword, setTenantPassword] = useState(""); const [confirmTenantPassword, setConfirmTenantPassword] = useState(""); + const [firstNameKontributor, setFirstNameKontributor] = useState(""); + const [lastNameKontributor, setLastNameKontributor] = useState(""); + const [whatsappKontributor, setWhatsappKontributor] = useState(""); + const [namaPerusahaan, setNamaPerusahaan] = useState(""); + const [kategoriPerusahaan, setKategoriPerusahaan] = useState(""); + const [kontributorPassword, setKontributorPassword] = useState(""); + const [confirmKontributorPassword, setConfirmKontributorPassword] = useState(""); const handleSendOtp = (e: React.FormEvent) => { e.preventDefault(); @@ -139,7 +146,7 @@ export default function SignUp() { {step === "login" ? (
{/* Radio Buttons */} Jurnalis
- - + +
@@ -199,16 +206,111 @@ export default function SignUp() {
)} - {/* Polri: NRP */} - {role === "polri" && ( -
+ {/* Kontributor: Form Fields */} + {role === "kontributor" && ( +
+
+ setFirstNameKontributor(e.target.value)} + /> + setLastNameKontributor(e.target.value)} + /> +
+ + setEmail(e.target.value)} + /> + + setWhatsappKontributor(e.target.value)} + /> + setNrp(e.target.value)} + placeholder="Nama Perusahaan" + value={namaPerusahaan} + onChange={(e) => setNamaPerusahaan(e.target.value)} /> + + + +
+ setKontributorPassword(e.target.value)} + className="pr-10" + /> + +
+ +
+ setConfirmKontributorPassword(e.target.value)} + className="pr-10" + /> + +
)} @@ -307,7 +409,7 @@ export default function SignUp() { )} {/* Email Field (Selalu Ada, tapi posisi bergantung role) */} - {role !== "tenant" && ( + {role !== "tenant" && role !== "kontributor" && (