에러 코드 네이밍 변경
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
import { API_URL_HOME } from '@/shared/api/api-url-home';
|
||||
import { resultify } from '@/shared/lib/resultify';
|
||||
import { CBDCAxiosError } from '@/shared/@types/error';
|
||||
import { NiceAxiosError } from '@/shared/@types/error';
|
||||
import {
|
||||
HomeMonthParams,
|
||||
HomeMonthResponse
|
||||
@@ -17,8 +17,8 @@ export const homeMonth = (params: HomeMonthParams) => {
|
||||
);
|
||||
};
|
||||
|
||||
export const useHomeMonthwMutation = (options?: UseMutationOptions<HomeMonthResponse, CBDCAxiosError, HomeMonthParams>) => {
|
||||
const mutation = useMutation<HomeMonthResponse, CBDCAxiosError, HomeMonthParams>({
|
||||
export const useHomeMonthwMutation = (options?: UseMutationOptions<HomeMonthResponse, NiceAxiosError, HomeMonthParams>) => {
|
||||
const mutation = useMutation<HomeMonthResponse, NiceAxiosError, HomeMonthParams>({
|
||||
...options,
|
||||
mutationFn: (params: HomeMonthParams) => homeMonth(params),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user