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" && (