diff options
Diffstat (limited to 'apps/mobile/lib')
| -rw-r--r-- | apps/mobile/lib/session.ts | 3 | ||||
| -rw-r--r-- | apps/mobile/lib/trpc.ts | 3 | ||||
| -rw-r--r-- | apps/mobile/lib/upload.ts | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/apps/mobile/lib/session.ts b/apps/mobile/lib/session.ts index 9f539693..d6470145 100644 --- a/apps/mobile/lib/session.ts +++ b/apps/mobile/lib/session.ts @@ -1,8 +1,9 @@ import { useCallback } from "react"; import { useMutation } from "@tanstack/react-query"; +import { useTRPC } from "@karakeep/shared-react/trpc"; + import useAppSettings from "./settings"; -import { useTRPC } from "./trpc"; export function useSession() { const { settings, setSettings } = useAppSettings(); diff --git a/apps/mobile/lib/trpc.ts b/apps/mobile/lib/trpc.ts deleted file mode 100644 index 915c265d..00000000 --- a/apps/mobile/lib/trpc.ts +++ /dev/null @@ -1,3 +0,0 @@ -// Re-export from shared-react to ensure there's only one TRPCProvider context -// This is necessary because the hooks in shared-react use useTRPC from shared-react -export { TRPCProvider, useTRPC } from "@karakeep/shared-react/trpc"; diff --git a/apps/mobile/lib/upload.ts b/apps/mobile/lib/upload.ts index 13abae16..2f323ddb 100644 --- a/apps/mobile/lib/upload.ts +++ b/apps/mobile/lib/upload.ts @@ -1,6 +1,7 @@ import ReactNativeBlobUtil from "react-native-blob-util"; import { useMutation, useQueryClient } from "@tanstack/react-query"; +import { useTRPC } from "@karakeep/shared-react/trpc"; import { BookmarkTypes, ZBookmark } from "@karakeep/shared/types/bookmarks"; import { zUploadErrorSchema, @@ -8,7 +9,6 @@ import { } from "@karakeep/shared/types/uploads"; import type { Settings } from "./settings"; -import { useTRPC } from "./trpc"; import { buildApiHeaders } from "./utils"; export function useUploadAsset( |
