mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
IDK WTF IS HAPPENING AHHH
This commit is contained in:
parent
f230447cfa
commit
57211202e9
1 changed files with 6 additions and 2 deletions
|
@ -96,7 +96,7 @@ export function NextEpisodeButton(props: {
|
|||
}, 1000);
|
||||
|
||||
return () => clearInterval(interval);
|
||||
}, [time, duration]);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (seconds === 0) {
|
||||
|
@ -105,6 +105,10 @@ export function NextEpisodeButton(props: {
|
|||
}
|
||||
}, [seconds, loadNextEpisode]);
|
||||
|
||||
useEffect(() => {
|
||||
setSeconds(15);
|
||||
}, [time, duration]);
|
||||
|
||||
if (!meta?.episode || !nextEp) return null;
|
||||
if (metaType !== "show") return null;
|
||||
|
||||
|
@ -131,7 +135,7 @@ export function NextEpisodeButton(props: {
|
|||
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} />
|
||||
{t(`Next episode ${seconds > 0 ? ` in ${seconds}` : ""}`)}
|
||||
{`Next episode ${seconds > 0 ? ` in ${seconds}` : ""}`}
|
||||
</Button>
|
||||
</div>
|
||||
</Transition>
|
||||
|
|
Loading…
Reference in a new issue