`yarn lint --fix + yarn prettier:write`

This commit is contained in:
Aj - Thomas
2022-05-02 15:11:28 +02:00
parent c95df0a07b
commit 8c1dce68b7
2 changed files with 17 additions and 7 deletions

View File

@@ -5,7 +5,6 @@ import { Download } from 'tabler-icons-react';
import { useConfig } from '../../tools/state'; import { useConfig } from '../../tools/state';
export default function SaveConfigComponent(props: any) { export default function SaveConfigComponent(props: any) {
const { config } = useConfig(); const { config } = useConfig();
function onClick(e: any) { function onClick(e: any) {
if (config) { if (config) {

View File

@@ -1,5 +1,3 @@
import { type } from "os";
export interface Settings { export interface Settings {
searchUrl: string; searchUrl: string;
searchBar: boolean; searchBar: boolean;
@@ -12,9 +10,22 @@ export interface Config {
} }
export const ServiceTypeList = [ export const ServiceTypeList = [
'Other', 'Sonarr', 'Radarr', 'Lidarr', 'qBittorrent', 'Plex', 'Emby' 'Other',
] 'Sonarr',
export type ServiceType = 'Other' | 'Sonarr' | 'Radarr' | 'Lidarr' | 'qBittorrent' | 'Plex' | 'Emby'; 'Radarr',
'Lidarr',
'qBittorrent',
'Plex',
'Emby',
];
export type ServiceType =
| 'Other'
| 'Sonarr'
| 'Radarr'
| 'Lidarr'
| 'qBittorrent'
| 'Plex'
| 'Emby';
export interface serviceItem { export interface serviceItem {
[x: string]: any; [x: string]: any;