summaryrefslogtreecommitdiff
path: root/src-migrate/modules/register
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2023-11-13 06:13:25 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-11-13 06:13:25 +0000
commit69575d143e29eed51fa733238126341ebda280e8 (patch)
treef3f5f251a66fed452241768e900fdd60ae8af87c /src-migrate/modules/register
parentfeea1a2602e22659fe73cb55e31c3d01f57218a4 (diff)
parent5a9210e560ca47d8f4d8c43b06fc93d1d064a6f6 (diff)
Merged in refactor/all (pull request #115)
Add close on modal otp activation, change validation register schema, fix term and condition checkbox
Diffstat (limited to 'src-migrate/modules/register')
-rw-r--r--src-migrate/modules/register/components/Form.tsx4
-rw-r--r--src-migrate/modules/register/components/TermCondition.tsx2
2 files changed, 2 insertions, 4 deletions
diff --git a/src-migrate/modules/register/components/Form.tsx b/src-migrate/modules/register/components/Form.tsx
index 63a84776..e9dc4906 100644
--- a/src-migrate/modules/register/components/Form.tsx
+++ b/src-migrate/modules/register/components/Form.tsx
@@ -19,9 +19,7 @@ const Form = () => {
validate,
} = useRegisterStore()
- const isFormValid = useMemo(() => {
- return Object.keys(errors).length === 0
- }, [errors])
+ const isFormValid = useMemo(() => Object.keys(errors).length === 0, [errors])
const router = useRouter()
const toast = useToast()
diff --git a/src-migrate/modules/register/components/TermCondition.tsx b/src-migrate/modules/register/components/TermCondition.tsx
index aaba6604..6b95ba19 100644
--- a/src-migrate/modules/register/components/TermCondition.tsx
+++ b/src-migrate/modules/register/components/TermCondition.tsx
@@ -10,7 +10,7 @@ const TermCondition = () => {
return (
<>
<div className="mt-4 flex items-center gap-x-2">
- <Checkbox id='tnc' name='tnc' checked={isCheckedTNC} onChange={toggleCheckTNC} />
+ <Checkbox id='tnc' name='tnc' isChecked={isCheckedTNC} onChange={toggleCheckTNC} />
<div>
<label htmlFor="tnc" className="cursor-pointer">Dengan ini saya menyetujui</label>
{' '}