diff options
| author | Fuwn <[email protected]> | 2024-01-31 02:20:30 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-31 02:20:30 -0800 |
| commit | 735b9d06d4a63cee42b7635a3d806717e55cd762 (patch) | |
| tree | 49c59d41756c31abf6eb3b43805378b4d2bfeaf5 /src/lib/List/Anime/CompletedAnimeList.svelte | |
| parent | refactor(css): use gap for all gaps (diff) | |
| download | due.moe-735b9d06d4a63cee42b7635a3d806717e55cd762.tar.xz due.moe-735b9d06d4a63cee42b7635a3d806717e55cd762.zip | |
refactor(list): use global identity
Diffstat (limited to 'src/lib/List/Anime/CompletedAnimeList.svelte')
| -rw-r--r-- | src/lib/List/Anime/CompletedAnimeList.svelte | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/List/Anime/CompletedAnimeList.svelte b/src/lib/List/Anime/CompletedAnimeList.svelte index 2d317aeb..ef1b103a 100644 --- a/src/lib/List/Anime/CompletedAnimeList.svelte +++ b/src/lib/List/Anime/CompletedAnimeList.svelte @@ -1,6 +1,6 @@ <script lang="ts"> import { mediaListCollection, Type, type Media } from '$lib/AniList/media'; - import type { UserIdentity, AniListAuthorisation } from '$lib/AniList/identity'; + import type { AniListAuthorisation } from '$lib/AniList/identity'; import { onMount } from 'svelte'; import anime from '$stores/anime'; import lastPruneTimes from '$stores/lastPruneTimes'; @@ -8,9 +8,9 @@ import AnimeList from './AnimeListTemplate.svelte'; import { getNotificationsContext } from 'svelte-notifications'; import locale from '$stores/locale'; + import identity from '$stores/identity'; export let user: AniListAuthorisation; - export let identity: UserIdentity; const { addNotification } = getNotificationsContext(); let animeLists: Promise<Media[]>; @@ -19,7 +19,7 @@ onMount(async () => { startTime = performance.now(); - animeLists = mediaListCollection(user, identity, Type.Anime, $anime, $lastPruneTimes.anime, { + animeLists = mediaListCollection(user, $identity, Type.Anime, $anime, $lastPruneTimes.anime, { addNotification }); }); @@ -54,7 +54,6 @@ {cleanMedia} bind:animeLists {user} - {identity} title={$locale().lists.completed.anime} completed /> |