Fix conflict and add disabled button when invalid input (#30)

* feat: responsive

* fix: success register

* feat: auth login responsive && auth login implementation

* fix: login page button disabled & register page

* fix: conflict

* fix: button disabled when loading
This commit is contained in:
Naufal Azmi
2025-05-26 17:07:51 +07:00
committed by GitHub
parent dd03b3da85
commit 0f46244d2b
8 changed files with 35 additions and 16 deletions
+2 -1
View File
@@ -12,12 +12,13 @@ export const useLogin = () => {
mode: 'all',
});
const { signIn } = useSession();
const { signIn, isLoading } = useSession();
const onSubmit = form.handleSubmit((data) => signIn(data));
return {
form,
onSubmit,
isLoading
};
};