mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Set default email password value login
This commit is contained in:
@@ -30,7 +30,12 @@ const LoginForm = () => {
|
|||||||
register,
|
register,
|
||||||
handleSubmit,
|
handleSubmit,
|
||||||
formState: { errors },
|
formState: { errors },
|
||||||
} = useForm<ILogin>();
|
} = useForm<ILogin>({
|
||||||
|
defaultValues: {
|
||||||
|
email: 'admin@nezumi.site',
|
||||||
|
password: 'Phanhuuloi2@@1',
|
||||||
|
}
|
||||||
|
});
|
||||||
const { login, isPending } = useLogin();
|
const { login, isPending } = useLogin();
|
||||||
|
|
||||||
const onSubmit = (data: ILogin) => {
|
const onSubmit = (data: ILogin) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user