From 992b64df8a0430efa1f82f38abf327cf93e49e88 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 22 Jan 2024 18:14:02 +0100 Subject: [PATCH] Simplify medioinfo popup --- .../packages/ui/src/components/media-info.tsx | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) 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) => } - - -