From 2c655b9482652e0e4693523adbff4bb0a59aeb6a Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Thu, 2 Jan 2025 17:25:03 +0100 Subject: [PATCH] chore --- components/settings/OtherSettings.tsx | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/components/settings/OtherSettings.tsx b/components/settings/OtherSettings.tsx index 2651c283..d280a167 100644 --- a/components/settings/OtherSettings.tsx +++ b/components/settings/OtherSettings.tsx @@ -1,4 +1,3 @@ -import { apiAtom, userAtom } from "@/providers/JellyfinProvider"; import { ScreenOrientationEnum, useSettings } from "@/utils/atoms/settings"; import { BACKGROUND_FETCH_TASK, @@ -6,30 +5,22 @@ import { unregisterBackgroundFetchAsync, } from "@/utils/background-tasks"; import { Ionicons } from "@expo/vector-icons"; -import { getItemsApi } from "@jellyfin/sdk/lib/utils/api"; -import { useQuery, useQueryClient } from "@tanstack/react-query"; import * as BackgroundFetch from "expo-background-fetch"; import * as ScreenOrientation from "expo-screen-orientation"; import * as TaskManager from "expo-task-manager"; -import { useAtom } from "jotai"; -import React, { useEffect, useState } from "react"; +import React, { useEffect } from "react"; import { Linking, Switch, TouchableOpacity, ViewProps } from "react-native"; import { toast } from "sonner-native"; import * as DropdownMenu from "zeego/dropdown-menu"; import { Text } from "../common/Text"; import { ListGroup } from "../list/ListGroup"; import { ListItem } from "../list/ListItem"; -import { Loader } from "../Loader"; interface Props extends ViewProps {} export const OtherSettings: React.FC = () => { const [settings, updateSettings] = useSettings(); - const [api] = useAtom(apiAtom); - const [user] = useAtom(userAtom); - - /******************** * Background task *******************/ @@ -60,7 +51,6 @@ export const OtherSettings: React.FC = () => { /********************** *********************/ - if (!settings) return null; return ( @@ -173,21 +163,6 @@ export const OtherSettings: React.FC = () => { /> - - Linking.openURL( - "https://github.com/lostb1t/jellyfin-plugin-media-lists" - ) - } - > - updateSettings({ usePopularPlugin: value })} - /> - - -