{label}
-{label}
+ ); }; Menu.Item = MenuItem; diff --git a/front/packages/primitives/src/menu.web.tsx b/front/packages/primitives/src/menu.web.tsx new file mode 100644 index 00000000..d3c26e07 --- /dev/null +++ b/front/packages/primitives/src/menu.web.tsx @@ -0,0 +1,148 @@ +/* + * Kyoo - A portable and vast media library solution. + * Copyright (c) Kyoo. + * + * See AUTHORS.md and LICENSE file in the project root for full license information. + * + * Kyoo is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * Kyoo is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Kyoo. If not, see{label}
} ++
{toTimerString(progress, duration)} : {toTimerString(duration)}
); diff --git a/front/packages/ui/src/player/components/right-buttons.tsx b/front/packages/ui/src/player/components/right-buttons.tsx index 2f51000e..5caccec4 100644 --- a/front/packages/ui/src/player/components/right-buttons.tsx +++ b/front/packages/ui/src/player/components/right-buttons.tsx @@ -21,7 +21,6 @@ import { Font, Track } from "@kyoo/models"; import { IconButton, tooltip, Menu, ts, A } from "@kyoo/primitives"; import { useAtom } from "jotai"; -import { useRouter } from "solito/router"; import { Platform, View } from "react-native"; import { useTranslation } from "react-i18next"; import ClosedCaption from "@material-symbols/svg-400/rounded/closed_caption-fill.svg"; @@ -31,7 +30,7 @@ import { Stylable, useYoshiki } from "yoshiki/native"; import { createParam } from "solito"; import { fullscreenAtom, subtitleAtom } from "../state"; -const { useParam } = createParam<{ subtitle?: string }>(); +const { useParam } = createParam<{ subtitle?: (string) }>(); export const RightButtons = ({ subtitles, @@ -52,32 +51,28 @@ export const RightButtons = ({ const spacing = css({ marginHorizontal: ts(1) }); - subtitles = [{ id: 1, slug: "oto", displayName: "toto" }]; - return (