diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-21 10:01:27 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-21 10:01:27 +0700 |
| commit | 2f106583f644e29019828a9e8ed82e23c7c67d0a (patch) | |
| tree | 452395e4b849e13316ada7f7f822c6b7504960f8 /src-migrate/modules/register/components/FormBisnis.tsx | |
| parent | 0427b70917d7623d5de1969b99e9c198c38ccca7 (diff) | |
<iman> update view new register
Diffstat (limited to 'src-migrate/modules/register/components/FormBisnis.tsx')
| -rw-r--r-- | src-migrate/modules/register/components/FormBisnis.tsx | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src-migrate/modules/register/components/FormBisnis.tsx b/src-migrate/modules/register/components/FormBisnis.tsx index 72921c2b..7b301dc5 100644 --- a/src-migrate/modules/register/components/FormBisnis.tsx +++ b/src-migrate/modules/register/components/FormBisnis.tsx @@ -59,15 +59,16 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => { }, []); const selectedIndustry = watch('industry'); - useEffect(() => { const selected = industries.find(industry => industry.value === selectedIndustry); + console.log("selected",selected) if (selected) { setSelectedCategory(selected.category); } }, [selectedIndustry, industries]); const handleInputChange = (event: ChangeEvent<HTMLInputElement>) => { + console.log("event",event) const { name, value } = event.target; updateFormBisnis(name, value); validateFormBisnis(); @@ -135,7 +136,7 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => { return ( <form className="mt-6 grid grid-cols-1 gap-y-4" onSubmit={handleSubmit}> <div> - <label htmlFor='email'>Email Bisnis</label> + <label htmlFor='email' className="font-bold">Email Bisnis</label> <input type='text' @@ -153,8 +154,8 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => { </div> <div> - <label htmlFor="company"> - Nama Bisnis <span className='text-gray_r-11'>(opsional)</span> + <label className="font-bold" htmlFor="company"> + Nama Bisnis </label> <div className="flex justify-between items-center gap-2 h-12"> <div className='w-4/5 pr-1'> @@ -178,8 +179,8 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => { </div> <div className=""> - <label htmlFor="company"> - Klasifikasi Jenis Usaha <span className='text-gray_r-11'>(opsional)</span> + <label className="font-bold" htmlFor="company"> + Klasifikasi Jenis Usaha </label> <Controller name='industry' @@ -190,7 +191,7 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => { </div> <div> - <label htmlFor='name'>Nama Wajib Pajak</label> + <label htmlFor='name' className="font-bold">Nama Wajib Pajak</label> <input type='text' @@ -207,7 +208,7 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => { </div> <div> - <label htmlFor='phone'>Nomor NPWP</label> + <label htmlFor='phone' className="font-bold">Nomor NPWP</label> <input type='tel' @@ -224,7 +225,7 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => { </div> <div> - <label htmlFor="document">Dokumen NPWP (opsional)</label> + <label htmlFor="document" className="font-bold">Dokumen NPWP</label> <input type="file" @@ -239,7 +240,7 @@ const FormBisnis: React.FC<FormProps> = ({ type, required }) => { </div> <div> - <label htmlFor="document">Dokumen SPPKP (opsional)</label> + <label htmlFor="document" className="font-bold">Dokumen SPPKP</label> <input type="file" |
