diff options
Diffstat (limited to 'apps/browser-extension/src/utils')
| -rw-r--r-- | apps/browser-extension/src/utils/providers.tsx | 7 | ||||
| -rw-r--r-- | apps/browser-extension/src/utils/trpc.ts | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/browser-extension/src/utils/providers.tsx b/apps/browser-extension/src/utils/providers.tsx index d20f2512..7b14b22c 100644 --- a/apps/browser-extension/src/utils/providers.tsx +++ b/apps/browser-extension/src/utils/providers.tsx @@ -1,10 +1,11 @@ +import { useEffect, useState } from "react"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { httpBatchLink } from "@trpc/client"; -import { useEffect, useState } from "react"; -import { api } from "./trpc"; -import usePluginSettings, { getPluginSettings } from "./settings"; import superjson from "superjson"; +import usePluginSettings, { getPluginSettings } from "./settings"; +import { api } from "./trpc"; + function getTRPCClient(address: string) { return api.createClient({ links: [ diff --git a/apps/browser-extension/src/utils/trpc.ts b/apps/browser-extension/src/utils/trpc.ts index da21a55a..9b025df1 100644 --- a/apps/browser-extension/src/utils/trpc.ts +++ b/apps/browser-extension/src/utils/trpc.ts @@ -1,4 +1,5 @@ import { createTRPCReact } from "@trpc/react-query"; + import type { AppRouter } from "@hoarder/trpc/routers/_app"; export const api = createTRPCReact<AppRouter>(); |
