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