pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

keep overlay shown for details modal

Pas 263edf00 bd9d9bc7

+6 -1
+6 -1
src/components/player/internals/InfoButton.tsx
··· 1 - import { useState } from "react"; 1 + import { useEffect, useState } from "react"; 2 2 3 3 import { Icons } from "@/components/Icon"; 4 4 import { DetailsModal } from "@/components/overlays/details/DetailsModal"; ··· 10 10 export function InfoButton() { 11 11 const meta = usePlayerStore((s) => s.meta); 12 12 const modal = useModal("player-details"); 13 + const setHasOpenOverlay = usePlayerStore((s) => s.setHasOpenOverlay); 13 14 const [detailsData, setDetailsData] = useState<{ 14 15 id: number; 15 16 type: "movie" | "show"; 16 17 } | null>(null); 18 + 19 + useEffect(() => { 20 + setHasOpenOverlay(modal.isShown); 21 + }, [setHasOpenOverlay, modal.isShown]); 17 22 18 23 const handleClick = async () => { 19 24 if (!meta?.tmdbId) return;