Update Appbar
This commit is contained in:
5 files changed
+253
-77
No files matched your search
@@ -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),
|
||||
})),
|
||||
}));
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user