From ff24cfaa3c64f7f51f3d7db47b4708a758651c31 Mon Sep 17 00:00:00 2001 From: rharkor Date: Sat, 16 Sep 2023 22:41:29 +0200 Subject: [PATCH] refactor: useForm --- src/app/[lang]/(sys-auth)/forgot-password/form.tsx | 1 - src/app/[lang]/(sys-auth)/reset-password/[token]/form.tsx | 2 -- src/components/auth/login-user-auth-form.tsx | 2 -- src/components/auth/register-user-auth-form.tsx | 4 ---- src/components/profile/update-account.tsx | 1 - src/components/ui/form-field.tsx | 6 ++++-- 6 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/app/[lang]/(sys-auth)/forgot-password/form.tsx b/src/app/[lang]/(sys-auth)/forgot-password/form.tsx index 376f839e..c1f236c7 100644 --- a/src/app/[lang]/(sys-auth)/forgot-password/form.tsx +++ b/src/app/[lang]/(sys-auth)/forgot-password/form.tsx @@ -69,7 +69,6 @@ export default function ForgotPasswordForm({ dictionary }: { dictionary: TDictio autoComplete="email" autoCorrect="off" disabled={isDisabled} - form={form} name="email" /> diff --git a/src/app/[lang]/(sys-auth)/reset-password/[token]/form.tsx b/src/app/[lang]/(sys-auth)/reset-password/[token]/form.tsx index 859b53d8..1425ef36 100644 --- a/src/app/[lang]/(sys-auth)/reset-password/[token]/form.tsx +++ b/src/app/[lang]/(sys-auth)/reset-password/[token]/form.tsx @@ -59,7 +59,6 @@ export default function ResetPasswordForm({ dictionary, token }: { dictionary: T type="password-eye-slash" placeholder={dictionary.password} autoComplete="new-password" - form={form} />
@@ -71,7 +70,6 @@ export default function ResetPasswordForm({ dictionary, token }: { dictionary: T type="password" placeholder={dictionary.passwordConfirmation} autoComplete="new-password" - form={form} />