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/AnimeList.svelte | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

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

diff --git a/src/lib/List/Due/AnimeList.svelte b/src/lib/List/Due/AnimeList.svelte
index 6d1b7457..69115bd4 100644
--- a/src/lib/List/Due/AnimeList.svelte
+++ b/src/lib/List/Due/AnimeList.svelte
@@ -9,6 +9,7 @@
 	import lastPruneTimes from '../../../stores/lastPruneTimes';
 	import { airingTime, cleanCache, totalEpisodes, updateMedia } from '$lib/Media/anime';
 	import ListTitle from './ListTitle.svelte';
+	import Error from '$lib/Error.svelte';
 
 	export let user: AniListAuthorisation;
 	export let identity: UserIdentity;
@@ -159,18 +160,5 @@
 {:catch}
 	<ListTitle time={0} count={'?'} anime />
 
-	<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}
-- 
cgit v1.2.3

