Update Appbar

This commit is contained in:
Prayag Prajapati committed 2024-01-04 12:40:33 +05:30
1 parent 73ac8a529e
commit 87f9eaf8b6
5 files changed
+253 -77

No files matched your search

+1 -6
View File
@@ -35,18 +35,13 @@ const jellyfin = new Jellyfin({
* @typedef {import("@jellyfin/sdk").Api} Api
*/
export const useApi = create((set) => ({
export const useApi = create(() => ({
/**
* @type {Api}
*/
api: null,
deviceId: localStorage.getItem("deviceId"),
jellyfin: jellyfin,
createApi: (serverAddress, accessToken) =>
set((state) => ({
...state,
api: jellyfin.createApi(serverAddress, accessToken, axiosClient),
})),
}));
/**