summaryrefslogtreecommitdiff
path: root/src-migrate/modules/register/components/RegistrasiBisnis.tsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-09-17 09:01:04 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-09-17 09:01:04 +0700
commitaaf907c834343970e1d30b3ef49c13ed5f9d34ed (patch)
treee22a80c3b9bfc2835ad78c13fc51fcafbc6598a0 /src-migrate/modules/register/components/RegistrasiBisnis.tsx
parent499954a8be814850103eece2dbd0306d6246989d (diff)
<iman> add focus error when button submit click
Diffstat (limited to 'src-migrate/modules/register/components/RegistrasiBisnis.tsx')
-rw-r--r--src-migrate/modules/register/components/RegistrasiBisnis.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/src-migrate/modules/register/components/RegistrasiBisnis.tsx b/src-migrate/modules/register/components/RegistrasiBisnis.tsx
index 36476ab9..ce4d3972 100644
--- a/src-migrate/modules/register/components/RegistrasiBisnis.tsx
+++ b/src-migrate/modules/register/components/RegistrasiBisnis.tsx
@@ -16,8 +16,12 @@ import { UseToastOptions, useToast } from '@chakra-ui/react';
import Link from 'next/link';
interface FormProps {
chekValid: boolean;
+ buttonSubmitClick: boolean;
}
-const RegistrasiBisnis: React.FC<FormProps> = ({ chekValid }) => {
+const RegistrasiBisnis: React.FC<FormProps> = ({
+ chekValid,
+ buttonSubmitClick,
+}) => {
const [isPKP, setIsPKP] = useState(true);
const [isTerdaftar, setIsTerdaftar] = useState(false);
const [isDropIndividu, setIsDropIndividu] = useState(true);
@@ -113,6 +117,7 @@ const RegistrasiBisnis: React.FC<FormProps> = ({ chekValid }) => {
required={true}
isBisnisRegist={true}
chekValid={chekValid}
+ buttonSubmitClick={buttonSubmitClick}
/>
</div>
)}
@@ -177,6 +182,7 @@ const RegistrasiBisnis: React.FC<FormProps> = ({ chekValid }) => {
required={isTerdaftar}
isPKP={isPKP}
chekValid={chekValid}
+ buttonSubmitClick={buttonSubmitClick}
/>
</div>
)}