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

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

diff --git a/src/lib/List/UpcomingAnimeList.svelte b/src/lib/List/UpcomingAnimeList.svelte
index d45b3633..68243823 100644
--- a/src/lib/List/UpcomingAnimeList.svelte
+++ b/src/lib/List/UpcomingAnimeList.svelte
@@ -9,6 +9,7 @@
 	import settings from '../../stores/settings';
 	import { airingTime, cleanCache } from '$lib/Media/anime';
 	import ListTitle from './Due/ListTitle.svelte';
+	import Error from '$lib/Error.svelte';
 
 	export let user: AniListAuthorisation;
 	export let identity: UserIdentity;
@@ -116,18 +117,5 @@
 {:catch}
 	<ListTitle count="?" time="0" custom="Upcoming Episodes" />
 
-	<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

