mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-16 05:51:57 +01:00
fix more import for tv
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import * as DropdownMenu from "zeego/dropdown-menu";
|
||||
const DropdownMenu = !Platform.isTV ? require("zeego/dropdown-menu") : null;
|
||||
import { Platform, TouchableOpacity, View, ViewProps } from "react-native";
|
||||
import { Text } from "../common/Text";
|
||||
import { useSettings } from "@/utils/atoms/settings";
|
||||
@@ -10,14 +10,12 @@ import { APP_LANGUAGES } from "@/i18n";
|
||||
interface Props extends ViewProps {}
|
||||
|
||||
export const AppLanguageSelector: React.FC<Props> = ({ ...props }) => {
|
||||
if (Platform.isTV) return null;
|
||||
const [settings, updateSettings] = useSettings();
|
||||
const { t } = useTranslation();
|
||||
|
||||
if (!settings) return null;
|
||||
|
||||
// todo: fix
|
||||
if (Platform.isTV) return null;
|
||||
|
||||
return (
|
||||
<View>
|
||||
<ListGroup title={t("home.settings.languages.title")}>
|
||||
|
||||
Reference in New Issue
Block a user