diff --git a/components/Config/SaveConfig.tsx b/components/Config/SaveConfig.tsx index 51025fee6..abd03237b 100644 --- a/components/Config/SaveConfig.tsx +++ b/components/Config/SaveConfig.tsx @@ -5,7 +5,6 @@ import { Download } from 'tabler-icons-react'; import { useConfig } from '../../tools/state'; export default function SaveConfigComponent(props: any) { - const { config } = useConfig(); function onClick(e: any) { if (config) { diff --git a/tools/types.ts b/tools/types.ts index 15d2d69c2..a658d6173 100644 --- a/tools/types.ts +++ b/tools/types.ts @@ -1,5 +1,3 @@ -import { type } from "os"; - export interface Settings { searchUrl: string; searchBar: boolean; @@ -11,10 +9,23 @@ export interface Config { settings: Settings; } -export const ServiceTypeList = [ - 'Other', 'Sonarr', 'Radarr', 'Lidarr', 'qBittorrent', 'Plex', 'Emby' -] -export type ServiceType = 'Other' | 'Sonarr' | 'Radarr' | 'Lidarr' | 'qBittorrent' | 'Plex' | 'Emby'; +export const ServiceTypeList = [ + 'Other', + 'Sonarr', + 'Radarr', + 'Lidarr', + 'qBittorrent', + 'Plex', + 'Emby', +]; +export type ServiceType = + | 'Other' + | 'Sonarr' + | 'Radarr' + | 'Lidarr' + | 'qBittorrent' + | 'Plex' + | 'Emby'; export interface serviceItem { [x: string]: any;