From c59f9a2556731ad95ab8bd7eefe7fa8a41629834 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 20 Dec 2022 17:45:24 -0300 Subject: use translation context from web-utils, don't use match react-router since is broken --- packages/merchant-backoffice-ui/src/context/fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/merchant-backoffice-ui/src/context/fetch.ts') diff --git a/packages/merchant-backoffice-ui/src/context/fetch.ts b/packages/merchant-backoffice-ui/src/context/fetch.ts index 3106a6abe..88c9bc30c 100644 --- a/packages/merchant-backoffice-ui/src/context/fetch.ts +++ b/packages/merchant-backoffice-ui/src/context/fetch.ts @@ -29,7 +29,7 @@ interface Type { useSWRInfinite: typeof useSWRInfinite; } -const Context = createContext({} as any); +const Context = createContext({} as Type); export const useFetchContext = (): Type => useContext(Context); export const FetchContextProvider = ({ -- cgit v1.2.3