Remove unnecessary code, refactor, fix bug and add section comment

This commit is contained in:
2023-12-01 11:24:31 +07:00
parent 7c6c33d455
commit 5b0d5671b3
44 changed files with 261 additions and 193 deletions
@@ -8,6 +8,10 @@ import { login as loginFn } from '@service/authenticationService';
// Types
import { ILogin } from '@type/common';
/**
* Login web
* @returns The login function and isPending boolean
*/
const useLogin = () => {
const queryClient = useQueryClient();
const navigate = useNavigate();