From 00df44e6f25eaeabc56ebba8b4e9b1cb692928d7 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 20 Aug 2024 10:27:32 +0700
Subject: <iman> add new register

---
 .../modules/register/components/RegistrasiIndividu.tsx        | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 src-migrate/modules/register/components/RegistrasiIndividu.tsx

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

diff --git a/src-migrate/modules/register/components/RegistrasiIndividu.tsx b/src-migrate/modules/register/components/RegistrasiIndividu.tsx
new file mode 100644
index 00000000..eff86124
--- /dev/null
+++ b/src-migrate/modules/register/components/RegistrasiIndividu.tsx
@@ -0,0 +1,11 @@
+import Form from "./Form";
+const RegistrasiIndividu = () => {
+
+  return (
+    <>
+        <Form type='individu' required={false}/>
+    </>
+  );
+};
+
+export default RegistrasiIndividu;
-- 
cgit v1.2.3


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/RegistrasiIndividu.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/src-migrate/modules/register/components/RegistrasiIndividu.tsx b/src-migrate/modules/register/components/RegistrasiIndividu.tsx
index eff86124..b32f2f7b 100644
--- a/src-migrate/modules/register/components/RegistrasiIndividu.tsx
+++ b/src-migrate/modules/register/components/RegistrasiIndividu.tsx
@@ -3,7 +3,7 @@ const RegistrasiIndividu = () => {
 
   return (
     <>
-        <Form type='individu' required={false}/>
+        <Form type='individu' required={false} isBisnisRegist={false}/>
     </>
   );
 };
-- 
cgit v1.2.3


From 3da0d5f55a0dc8b9c04cb271ea7d541c63c9e3a8 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 28 Aug 2024 11:57:18 +0700
Subject: <iman> update new register

---
 .../modules/register/components/RegistrasiIndividu.tsx    | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

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

diff --git a/src-migrate/modules/register/components/RegistrasiIndividu.tsx b/src-migrate/modules/register/components/RegistrasiIndividu.tsx
index b32f2f7b..5503db2a 100644
--- a/src-migrate/modules/register/components/RegistrasiIndividu.tsx
+++ b/src-migrate/modules/register/components/RegistrasiIndividu.tsx
@@ -1,5 +1,20 @@
 import Form from "./Form";
+import { useRegisterStore } from "../stores/useRegisterStore";
+import { useEffect } from "react";
 const RegistrasiIndividu = () => {
+  const {
+    form,
+    errors,
+    updateForm,
+    validate
+  } = useRegisterStore()
+
+  useEffect(() => {
+    updateForm("is_pkp", 'false');
+    updateForm("is_terdaftar", 'false');
+    updateForm("type_acc", 'individu');
+    validate();
+  }, []);
 
   return (
     <>
-- 
cgit v1.2.3


From 6ff5efdb4b7eec25f991f5bfcc02b4a3f883981b Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 11 Sep 2024 10:04:31 +0700
Subject: <iman> update error handling hanya muncul saat button daftar di click

---
 .../register/components/RegistrasiIndividu.tsx     | 31 ++++++++++++----------
 1 file changed, 17 insertions(+), 14 deletions(-)

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

diff --git a/src-migrate/modules/register/components/RegistrasiIndividu.tsx b/src-migrate/modules/register/components/RegistrasiIndividu.tsx
index 5503db2a..3997e767 100644
--- a/src-migrate/modules/register/components/RegistrasiIndividu.tsx
+++ b/src-migrate/modules/register/components/RegistrasiIndividu.tsx
@@ -1,24 +1,27 @@
-import Form from "./Form";
-import { useRegisterStore } from "../stores/useRegisterStore";
-import { useEffect } from "react";
-const RegistrasiIndividu = () => {
-  const {
-    form,
-    errors,
-    updateForm,
-    validate
-  } = useRegisterStore()
+import Form from './Form';
+import { useRegisterStore } from '../stores/useRegisterStore';
+import { useEffect } from 'react';
+interface FormProps {
+  chekValid: boolean;
+}
+const RegistrasiIndividu: React.FC<FormProps> = ({ chekValid }) => {
+  const { form, errors, updateForm, validate } = useRegisterStore();
 
   useEffect(() => {
-    updateForm("is_pkp", 'false');
-    updateForm("is_terdaftar", 'false');
-    updateForm("type_acc", 'individu');
+    updateForm('is_pkp', 'false');
+    updateForm('is_terdaftar', 'false');
+    updateForm('type_acc', 'individu');
     validate();
   }, []);
 
   return (
     <>
-        <Form type='individu' required={false} isBisnisRegist={false}/>
+      <Form
+        type='individu'
+        required={false}
+        isBisnisRegist={false}
+        chekValid={chekValid}
+      />
     </>
   );
 };
-- 
cgit v1.2.3


From aaf907c834343970e1d30b3ef49c13ed5f9d34ed Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 17 Sep 2024 09:01:04 +0700
Subject: <iman> add focus error when button submit click

---
 src-migrate/modules/register/components/RegistrasiIndividu.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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

diff --git a/src-migrate/modules/register/components/RegistrasiIndividu.tsx b/src-migrate/modules/register/components/RegistrasiIndividu.tsx
index 3997e767..84049065 100644
--- a/src-migrate/modules/register/components/RegistrasiIndividu.tsx
+++ b/src-migrate/modules/register/components/RegistrasiIndividu.tsx
@@ -3,8 +3,12 @@ import { useRegisterStore } from '../stores/useRegisterStore';
 import { useEffect } from 'react';
 interface FormProps {
   chekValid: boolean;
+  buttonSubmitClick: boolean;
 }
-const RegistrasiIndividu: React.FC<FormProps> = ({ chekValid }) => {
+const RegistrasiIndividu: React.FC<FormProps> = ({
+  chekValid,
+  buttonSubmitClick,
+}) => {
   const { form, errors, updateForm, validate } = useRegisterStore();
 
   useEffect(() => {
@@ -21,6 +25,7 @@ const RegistrasiIndividu: React.FC<FormProps> = ({ chekValid }) => {
         required={false}
         isBisnisRegist={false}
         chekValid={chekValid}
+        buttonSubmitClick={buttonSubmitClick}
       />
     </>
   );
-- 
cgit v1.2.3

