1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-01 16:37:39 +01:00

Fix eslint issues

This commit is contained in:
Cooper Ransom 2024-03-21 19:53:48 -04:00
parent ef71d7a2a4
commit ad17b3838e

View file

@ -102,7 +102,7 @@ export function NextEpisodeButton(props: {
if (countdown === 0) { if (countdown === 0) {
loadNextEpisode(); loadNextEpisode();
} }
}, [countdown]); }, [countdown, loadNextEpisode]);
if (!meta?.episode || !nextEp) return null; if (!meta?.episode || !nextEp) return null;
if (metaType !== "show") return null; if (metaType !== "show") return null;
@ -130,7 +130,9 @@ export function NextEpisodeButton(props: {
className="bg-buttons-primary hover:bg-buttons-primaryHover text-buttons-primaryText flex justify-center items-center" className="bg-buttons-primary hover:bg-buttons-primaryHover text-buttons-primaryText flex justify-center items-center"
> >
<Icon className="text-xl mr-1" icon={Icons.SKIP_EPISODE} /> <Icon className="text-xl mr-1" icon={Icons.SKIP_EPISODE} />
{countdown > 0 ? `Next episode in ${countdown} seconds` : t("player.nextEpisode.next")} {countdown > 0
? `Next episode in ${countdown} seconds`
: t("player.nextEpisode.next")}
</Button> </Button>
</div> </div>
</Transition> </Transition>