From 942d895446ffa39e97ebd8197d67bfd7d50b603e Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 26 Sep 2023 17:33:54 -0700
Subject: feat(anime): component title field

---
 src/lib/List/AnimeList.svelte | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'src/lib/List/AnimeList.svelte')

diff --git a/src/lib/List/AnimeList.svelte b/src/lib/List/AnimeList.svelte
index ad39cae5..dd1b69ac 100644
--- a/src/lib/List/AnimeList.svelte
+++ b/src/lib/List/AnimeList.svelte
@@ -14,16 +14,17 @@
 	export let user: AniListAuthorisation;
 	export let identity: UserIdentity;
 	export let displayUnresolved: boolean;
+	export let title: string;
 </script>
 
 {#await animeLists}
-	<ListTitle anime />
+	<ListTitle custom={title} />
 
 	<ul><li>Loading ...</li></ul>
 {:then media}
 	{@const cleanedMedia = cleanMedia(media, displayUnresolved)}
 
-	<ListTitle time={endTime / 1000} count={cleanedMedia.length} anime />
+	<ListTitle time={endTime / 1000} count={cleanedMedia.length} custom={title} />
 
 	{#if cleanedMedia.length === 0}
 		<ul>
@@ -68,7 +69,7 @@
 		{/each}
 	</ul>
 {:catch}
-	<ListTitle time={0} count={'?'} anime />
+	<ListTitle time={0} count={'?'} custom={title} />
 
 	<Error />
 {/await}
-- 
cgit v1.2.3

