diff --git a/frontend/src/helperComponents/Header.svelte b/frontend/src/helperComponents/Header.svelte index 9201c4f..f286f9c 100644 --- a/frontend/src/helperComponents/Header.svelte +++ b/frontend/src/helperComponents/Header.svelte @@ -2,38 +2,22 @@ import Search from "./Search.svelte" import { aniListLoggedIn, - aniListUser, loginToAniList, loginToMAL, loginToSimkl, malLoggedIn, - malUser, simklLoggedIn, - simklUser, } from "../helperModules/GlobalVariablesAndHelperFunctions.svelte" - import type {AniListUser} from "../anilist/types/AniListTypes"; - import type {SimklUser} from "../simkl/types/simklTypes"; - import type {MyAnimeListUser} from "../mal/types/MALTypes"; import AvatarMenu from "./AvatarMenu.svelte"; import logo from "../assets/images/AniTrackLogo.svg" - import {location} from "svelte-spa-router"; let isAniListLoggedIn: boolean let isSimklLoggedIn: boolean let isMALLoggedIn: boolean - let currentAniListUser: AniListUser - let currentSimklUser: SimklUser - let currentMALUser: MyAnimeListUser aniListLoggedIn.subscribe((value) => isAniListLoggedIn = value) simklLoggedIn.subscribe((value) => isSimklLoggedIn = value) malLoggedIn.subscribe((value) => isMALLoggedIn = value) - aniListUser.subscribe((value) => currentAniListUser = value) - simklUser.subscribe((value) => currentSimklUser = value) - malUser.subscribe((value) => currentMALUser = value) - - let currentLocation: any - location.subscribe(value => currentLocation = value)