Skip to content

Commit cca59fb

Browse files
committed
refactor: clean up unused code in postUserLogin mutation file
1 parent f1fa1c3 commit cca59fb

1 file changed

Lines changed: 0 additions & 36 deletions

File tree

apps/ticket/src/data/users/postUserLogin/mutation.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,5 @@
1-
// import { useMutation, UseMutationOptions } from "@tanstack/react-query";
2-
3-
// import { API_URL } from "@/data/constants";
4-
// import { instance } from "@/lib/axios";
5-
// import { SocialLoginType } from "@/shared/hooks/useOAuth/types";
6-
7-
// type LoginRequest = {
8-
// socialType: SocialLoginType;
9-
// authorizationCode: string;
10-
// redirectUrl: string;
11-
// };
12-
13-
// type LoginResponse = {
14-
// data: null;
15-
// };
16-
17-
// export type LoginMutationOptions<TData> = Omit<
18-
// UseMutationOptions<TData, Error, LoginRequest>,
19-
// "mutationFn"
20-
// > & {
21-
// onSuccess?: (data: TData) => void;
22-
// };
23-
24-
// export const useLoginMutation = (options?: LoginMutationOptions<LoginResponse>) => {
25-
// return useMutation({
26-
// mutationFn: async (params: LoginRequest) => {
27-
// const { data } = await instance.post<LoginResponse>(API_URL.USER.LOGIN, params);
28-
29-
// return data;
30-
// },
31-
// ...options,
32-
// });
33-
// };
34-
351
import { useMutation, UseMutationOptions } from "@tanstack/react-query";
362

37-
import { API_URL } from "@/data/constants";
38-
import { instance } from "@/lib/axios";
393
import { SocialLoginType } from "@/shared/hooks/useOAuth/types";
404

415
type LoginRequest = {

0 commit comments

Comments
 (0)