From 29e82820e76d3723b83870f4f119b9b2b8c1aa13 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 14 Dec 2023 16:28:15 -0800
Subject: feat(sequelspy): display upcoming date

---
 src/lib/Tools/SequelSpy.svelte | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/lib/Tools/SequelSpy.svelte')

diff --git a/src/lib/Tools/SequelSpy.svelte b/src/lib/Tools/SequelSpy.svelte
index 441585a4..5386066c 100644
--- a/src/lib/Tools/SequelSpy.svelte
+++ b/src/lib/Tools/SequelSpy.svelte
@@ -4,6 +4,8 @@
 	import MediaTitle from '$lib/List/MediaTitleDisplay.svelte';
 	import { onMount } from 'svelte';
 	import { clearAllParameters } from './tool';
+	import { airingTime } from '$lib/Media/anime';
+	import type { Media } from '$lib/AniList/media';
 
 	export let user: AniListAuthorisation;
 
@@ -24,6 +26,8 @@
 	$: currentPrequels = prequels(user, year, season);
 
 	onMount(clearAllParameters);
+
+	const prequelAiringTime = (prequel: MediaPrequel) => airingTime(prequel as unknown as Media);
 </script>
 
 <p>
@@ -47,6 +51,7 @@
 				</a>
 				<span style="opacity: 50%;">|</span>
 				{prequel.seen}<span style="opacity: 50%;">/{prequel.episodes}</span>
+				{@html prequelAiringTime(prequel)}
 			</li>
 		{/each}
 	</ul>
-- 
cgit v1.2.3

