propro-common-components 0.1.314 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
2
2
  import { AxiosError, AxiosRequestConfig } from 'axios';
3
- import { ToastOptions } from 'react-toastify';
3
+ import { ToasterProps } from 'sonner';
4
4
 
5
5
  interface UseMutateParams<TData, TError, TVariables, _TContext> {
6
6
  url: string | ((variables: TVariables) => string);
@@ -15,7 +15,7 @@ interface UseMutateParams<TData, TError, TVariables, _TContext> {
15
15
  message: string;
16
16
  successMessage: string;
17
17
  errorMessage: string;
18
- options?: ToastOptions<unknown>;
18
+ options?: ToasterProps;
19
19
  };
20
20
  onSuccess?: (res: TData, variables?: TVariables) => void;
21
21
  onError?: (err: TError, variables?: TVariables) => void;