diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-22 16:48:03 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-22 16:48:03 +0700 |
| commit | fb346e50e06ed68508662ca3d004db2c2cc117eb (patch) | |
| tree | 2e6b7d23847583bbace134a9c20c8000a91f42ee /src-migrate/modules/register/components/Form.tsx | |
| parent | 6623dba2f6cd4a4ca7b25f7086991afef092cd26 (diff) | |
<iman> update new register
Diffstat (limited to 'src-migrate/modules/register/components/Form.tsx')
| -rw-r--r-- | src-migrate/modules/register/components/Form.tsx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src-migrate/modules/register/components/Form.tsx b/src-migrate/modules/register/components/Form.tsx index ba28b32f..76601866 100644 --- a/src-migrate/modules/register/components/Form.tsx +++ b/src-migrate/modules/register/components/Form.tsx @@ -12,10 +12,11 @@ import Link from "next/link"; interface FormProps { type: string; required: boolean; - isPKP: boolean; + isBisnisRegist: boolean; } -const Form: React.FC<FormProps> = ({ type, required, isPKP }) => { +const Form: React.FC<FormProps> = ({ type, required, isBisnisRegist=false }) => { + console.log("isBisnisRegist",isBisnisRegist) const { form, isCheckedTNC, @@ -34,18 +35,17 @@ const Form: React.FC<FormProps> = ({ type, required, isPKP }) => { const handleInputChange = (event: ChangeEvent<HTMLInputElement>) => { const { name, value } = event.target; updateForm(name, value) + // if(!isBisnisRegist){ + updateForm('business_name','Iman') + updateForm('companyType','iman') + updateForm('email_partner','it@fixcomart.co.id') + updateForm('industry','1') + updateForm('nama_wajib_pajak','Iman') + updateForm('npwp','958666666688888') + updateForm('npwp_document','adsdad.pdf') + updateForm('sppkp_document','fdddwedw.pdf') + // } validate() - if(isPKP){ - updateForm('nama_wajib_pajak','') - updateForm('sppkp_document','') - updateForm('npwp_document','') - updateForm('industry','') - updateForm('badanUsaha','') - updateForm('email_partner','') - updateForm('business_name','') - updateForm('companyType','') - updateForm('npwp','') - } } const mutation = useMutation({ |
