diff --git a/front/packages/ui/src/components/media-info.tsx b/front/packages/ui/src/components/media-info.tsx
index 06a36390..d84c4f62 100644
--- a/front/packages/ui/src/components/media-info.tsx
+++ b/front/packages/ui/src/components/media-info.tsx
@@ -18,7 +18,7 @@
* along with Kyoo. If not, see .
*/
-import { Audio, Subtitle, WatchInfo, WatchInfoP } from "@kyoo/models";
+import { Audio, QueryIdentifier, Subtitle, WatchInfo, WatchInfoP } from "@kyoo/models";
import { Button, HR, P, Popup, Skeleton } from "@kyoo/primitives";
import { Fetch } from "../fetch";
import { useTranslation } from "react-i18next";
@@ -108,23 +108,24 @@ export const MediaInfoPopup = ({
mediaType: "episode" | "movie";
mediaSlug: string;
}) => {
- const y = useYoshiki();
+ const { css } = useYoshiki();
const mediaInfoQuery = {
path: ["video", mediaType, mediaSlug, "info"],
parser: WatchInfoP,
};
return (
- {() => (
- <>
-
-
- {(mediaInfo) => }
-
-
-
);
};
+
+MediaInfoPopup.query = (mediaType: string, mediaSlug: string): QueryIdentifier => ({
+ path: ["video", mediaType, mediaSlug, "info"],
+ parser: WatchInfoP,
+});