From 54b6b618effc8416027ed884be1d6d37257c26c4 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 26 Aug 2024 11:59:57 +0700
Subject: <iman> update fungsion component

---
 src-migrate/modules/register/components/Form.tsx | 33 ++----------------------
 1 file changed, 2 insertions(+), 31 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 5e5e0a11..29c21f62 100644
--- a/src-migrate/modules/register/components/Form.tsx
+++ b/src-migrate/modules/register/components/Form.tsx
@@ -16,7 +16,6 @@ interface FormProps {
 }
 
 const Form: React.FC<FormProps> = ({ type, required, isBisnisRegist=false }) => {
-  console.log("isBisnisRegist",isBisnisRegist)
   const {
     form,
     isCheckedTNC,
@@ -27,7 +26,6 @@ const Form: React.FC<FormProps> = ({ type, required, isBisnisRegist=false }) =>
   } = useRegisterStore()
 
   const isFormValid = useMemo(() => Object.keys(errors).length === 0, [errors])
-  console.log("errors",errors)
 
   const router = useRouter()
   const toast = useToast()
@@ -35,19 +33,6 @@ const Form: React.FC<FormProps> = ({ type, required, isBisnisRegist=false }) =>
   const handleInputChange = (event: ChangeEvent<HTMLInputElement>) => {
     const { name, value } = event.target;
     updateForm(name, value)
-    // if(!isBisnisRegist){
-    
-      // updateForm('type_acc',`individu`)
-      // updateForm('is_pkp','false')
-      // updateForm('business_name','Iman')
-      // updateForm('company_type_id','0')
-      // updateForm('email_partner','it@fixcomart.co.id')
-      // updateForm('industry_id','0')
-      // updateForm('nama_wajib_pajak','Iman')
-      // updateForm('npwp','958666666688888')
-      // updateForm('npwp_document','adsdad.pdf')
-      // updateForm('sppkp_document','fdddwedw.pdf')
-    // }
     validate()
   }
 
@@ -93,7 +78,7 @@ const Form: React.FC<FormProps> = ({ type, required, isBisnisRegist=false }) =>
         break
     }
   }
-  console.log(!isFormValid,!isCheckedTNC,mutation.isLoading,!isValidCaptcha)
+  
 
   return (
     <form className="mt-6 grid grid-cols-1 gap-y-4" onSubmit={handleSubmit}>
@@ -167,21 +152,7 @@ const Form: React.FC<FormProps> = ({ type, required, isBisnisRegist=false }) =>
         {!!errors.phone && <span className="form-msg-danger">{errors.phone}</span>}
       </div>
 
-      {type==='individu' && (
-        <>
-          <FormCaptcha />
-    
-          <TermCondition />
-          <button
-            type="submit"
-            className="btn-yellow w-full mt-2"
-            disabled={!isFormValid || !isCheckedTNC || mutation.isLoading || !isValidCaptcha}
-          >
-            {mutation.isLoading ? 'Loading...' : 'Daftar'}
-          </button>
-        </>
-
-      )}
+     
 
 
     </form>
-- 
cgit v1.2.3

