diff --git a/front/packages/primitives/src/popup.tsx b/front/packages/primitives/src/popup.tsx index 6ad11db0..cf864280 100644 --- a/front/packages/primitives/src/popup.tsx +++ b/front/packages/primitives/src/popup.tsx @@ -87,5 +87,5 @@ export const usePopup = () => { return () => removePortal("popup"); }, [current, addPortal, removePortal]); - return [setPopup, close]; + return [setPopup, close] as const; }; diff --git a/front/packages/ui/src/details/header.tsx b/front/packages/ui/src/details/header.tsx index 4a1a8b4c..80268029 100644 --- a/front/packages/ui/src/details/header.tsx +++ b/front/packages/ui/src/details/header.tsx @@ -213,76 +213,93 @@ export const TitleLine = ({ )} )} - - {playHref !== null && ( - - )} - {trailerUrl && ( - - )} - {watchStatus !== undefined && type !== "collection" && slug && ( - - )} - {type === "movie" && slug && ( - <> + + + {playHref !== null && ( + + )} + {trailerUrl && ( downloader(type, slug)} + icon={Theaters} + as={Link} + href={trailerUrl} + target="_blank" color={{ xs: theme.user.contrast, md: theme.colors.white }} - {...tooltip(t("home.episodeMore.download"))} + {...tooltip(t("show.trailer"))} /> - - setPopup() - } - /> - - )} - {rating !== null && ( - <> - - - - )} - {runtime && ( - <> - -

- {displayRuntime(runtime)} -

- - )} + )} + {type === "movie" && slug && ( + <> + downloader(type, slug)} + color={{ xs: theme.user.contrast, md: theme.colors.white }} + {...tooltip(t("home.episodeMore.download"))} + /> + + setPopup( + , + ) + } + /> + + )} +
+ + {rating !== null && ( + <> + + + + )} + {runtime && ( + <> + +

+ {displayRuntime(runtime)} +

+ + )} +