Skip to content

Commit

Permalink
fix: uncontrolled input to controlled in SigninUpForm (#8536)
Browse files Browse the repository at this point in the history
Fixes: #8535

---------

Co-authored-by: Devessier <[email protected]>
  • Loading branch information
harshrajeevsingh and Devessier authored Nov 19, 2024
1 parent 0d0f7e6 commit 86c2e9f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
import { FooterNote } from '@/auth/sign-in-up/components/FooterNote';
import {
HorizontalSeparator,
ActionLink,
IconGoogle,
IconKey,
IconMicrosoft,
Loader,
MainButton,
StyledText,
} from 'twenty-ui';
import { useHandleResetPassword } from '@/auth/sign-in-up/hooks/useHandleResetPassword';
import { SignInUpMode, useSignInUp } from '@/auth/sign-in-up/hooks/useSignInUp';
import {
Expand All @@ -29,6 +19,16 @@ import { useMemo, useState } from 'react';
import { Controller } from 'react-hook-form';
import { useRecoilState, useRecoilValue } from 'recoil';
import { Key } from 'ts-key-enum';
import {
ActionLink,
HorizontalSeparator,
IconGoogle,
IconKey,
IconMicrosoft,
Loader,
MainButton,
StyledText,
} from 'twenty-ui';
import { isDefined } from '~/utils/isDefined';

const StyledContentContainer = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export const useSignInUpForm = () => {
mode: 'onChange',
defaultValues: {
exist: false,
email: '',
password: '',
captchaToken: '',
},
resolver: zodResolver(validationSchema),
});
Expand Down

0 comments on commit 86c2e9f

Please sign in to comment.