refactor: change UI of login/list and fix Api not being defined in context

This commit is contained in:
Prayag Prajapati committed 2024-11-20 11:16:22 +05:30
1 parent b0e08ce4bd
commit c8409d8a01
13 files changed
+243 -171

No files matched your search

+2 -5
View File
@@ -51,11 +51,8 @@ import { DndProvider } from "react-dnd";
import { HTML5Backend } from "react-dnd-html5-backend";
type ApiContext = {
api: Api;
createApi: (
serverAddress: string | undefined | null,
accessToken: string | undefined | null,
) => void;
api: Api | undefined;
createApi: (serverAddress: string, accessToken: string | undefined) => void;
user: UserDto | null | undefined;
jellyfinSDK: Jellyfin;
fetchCurrentUser: (api: Api | undefined) => Promise<void>;