From fb346e50e06ed68508662ca3d004db2c2cc117eb Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 22 Aug 2024 16:48:03 +0700
Subject: <iman> update new register

---
 src-migrate/modules/register/components/Form.tsx | 26 ++++++++++++------------
 1 file changed, 13 insertions(+), 13 deletions(-)

(limited to 'src-migrate/modules/register/components/Form.tsx')

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({
-- 
cgit v1.2.3

