From 630da963b7b592853332b541b09ed6aefdec43d3 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 25 Sep 2023 21:44:59 -0700
Subject: feat(list): error component

---
 src/lib/List/Due/MangaList.svelte | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

(limited to 'src/lib/List/Due/MangaList.svelte')

diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte
index d7c37d48..b6644374 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -8,6 +8,7 @@
 	import settings from '../../../stores/settings';
 	import lastPruneTimes from '../../../stores/lastPruneTimes';
 	import ListTitle from './ListTitle.svelte';
+	import Error from '$lib/Error.svelte';
 
 	export let user: AniListAuthorisation;
 	export let identity: UserIdentity;
@@ -161,22 +162,8 @@
 			{/each}
 		</ul>
 	{:catch}
-		<summary>Manga & Light Novels [?] <small style="opacity: 50%">0s</small></summary>
 		<ListTitle count={'?'} time={0} />
 
-		<ul>
-			<li>
-				<p>
-					Media could not be loaded. You might have been <a
-						href="https://en.wikipedia.org/wiki/Rate_limiting"
-						target="_blank">rate limited</a
-					>.
-				</p>
-				<p>
-					Try again in a few minutes. If the problem persists, please contact
-					<a href="https://anilist.co/user/fuwn" target="_blank">@fuwn</a> on AniList.
-				</p>
-			</li>
-		</ul>
+		<Error />
 	{/await}
 {/await}
-- 
cgit v1.2.3

