mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2026-02-12 17:18:35 -06:00
okokok
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import { Jellyfin } from "@jellyfin/sdk"
|
||||
import { Query, useQuery } from "@tanstack/react-query";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import { getDeviceNameSync, getUniqueIdSync } from "react-native-device-info"
|
||||
import { QueryKeys } from "../enums/query-keys";
|
||||
import { name, version } from "../package.json"
|
||||
import { createApi, createPublicApi } from "./queries/functions/api";
|
||||
import { fetchServer } from "./queries/functions/storage";
|
||||
|
||||
export const client : Jellyfin = new Jellyfin({
|
||||
clientInfo: {
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api"
|
||||
import { useQuery, UseQueryResult } from "@tanstack/react-query";
|
||||
import { QueryKeys } from "../../enums/query-keys";
|
||||
import { useApi } from "../queries";
|
||||
import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client/models";
|
||||
import { useChildrenFromParent } from "./items";
|
||||
import { fetchServer } from "./functions/storage";
|
||||
import { createApi } from "./functions/api";
|
||||
|
||||
export const useArtistAlbums : (artistId: string) => UseQueryResult<BaseItemDto[], Error> = (artistId: string) => useQuery({
|
||||
|
||||
@@ -34,12 +34,7 @@ export default function Jellify(): React.JSX.Element {
|
||||
}
|
||||
|
||||
return (
|
||||
(credentials.isPending) ? (
|
||||
<SafeAreaView style={jellifyStyles.container}>
|
||||
<Text>Logging in</Text>
|
||||
<ActivityIndicator />
|
||||
</SafeAreaView>
|
||||
) : (
|
||||
(
|
||||
<LoginContext.Provider value={{keychain, loginContextFns}}>
|
||||
<NavigationContainer>
|
||||
<SafeAreaView style={jellifyStyles.container}>
|
||||
|
||||
Reference in New Issue
Block a user