From e5ac0842009d24ebb684e72e1bb904debb2df411 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=80=E1=85=B5=E1=86=B7=E1=84=86=E1=85=B5=E1=86=AB?= =?UTF-8?q?=E1=84=80=E1=85=A7=E1=86=BC?= Date: Fri, 15 Dec 2023 22:59:27 +0900 Subject: [PATCH] Fix : remove login hook --- src/api/hooks/useLogin.ts | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 src/api/hooks/useLogin.ts diff --git a/src/api/hooks/useLogin.ts b/src/api/hooks/useLogin.ts deleted file mode 100644 index 16f7536..0000000 --- a/src/api/hooks/useLogin.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { useQuery } from 'react-query'; -import instance from 'shared/axios'; - -export const useLogin = (codeValue: string) => { - return useQuery( - ['login'], - async () => await instance.post(`/api/user/kakao?code=${codeValue}`), - { - onSuccess(data) { - return data; - }, - } - ); -};