chore: Replace Error with FetchError (#8885)
This commit is contained in:
@@ -3,6 +3,7 @@ import { QueryKey, UseQueryOptions, useQuery } from "@tanstack/react-query"
|
||||
import { HttpTypes } from "@medusajs/types"
|
||||
import { sdk } from "../../lib/client"
|
||||
import { queryKeysFactory } from "../../lib/query-key-factory"
|
||||
import { FetchError } from "@medusajs/js-sdk"
|
||||
|
||||
const NOTIFICATION_QUERY_KEY = "notification" as const
|
||||
export const notificationQueryKeys = queryKeysFactory(NOTIFICATION_QUERY_KEY)
|
||||
@@ -13,7 +14,7 @@ export const useNotification = (
|
||||
options?: Omit<
|
||||
UseQueryOptions<
|
||||
HttpTypes.AdminNotificationResponse,
|
||||
Error,
|
||||
FetchError,
|
||||
HttpTypes.AdminNotificationResponse,
|
||||
QueryKey
|
||||
>,
|
||||
@@ -34,7 +35,7 @@ export const useNotifications = (
|
||||
options?: Omit<
|
||||
UseQueryOptions<
|
||||
HttpTypes.AdminNotificationListResponse,
|
||||
Error,
|
||||
FetchError,
|
||||
HttpTypes.AdminNotificationListResponse,
|
||||
QueryKey
|
||||
>,
|
||||
|
||||
Reference in New Issue
Block a user