mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 20:01:59 +00:00
Remove unnecessary code, refactor, fix bug and add section comment
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user