This commit is contained in:
Thomas "ajnart" Camlong
2022-04-30 21:51:37 +02:00
parent 023f3ca9e4
commit a13dad4d42
7 changed files with 74 additions and 81 deletions

View File

@@ -35,7 +35,13 @@ export default function AddItemShelfItem(props: any) {
});
return (
<>
<Modal size="xl" radius="lg" opened={props.opened || opened} onClose={() => setOpened(false)} title="Add a service">
<Modal
size="xl"
radius="lg"
opened={props.opened || opened}
onClose={() => setOpened(false)}
title="Add a service"
>
<Center>
<Image
height={120}

View File

@@ -1,12 +1,4 @@
export const ServiceTypes = [
'Other',
'Sonarr',
'Radarr',
'Lidarr',
'qBittorrent',
'Plex',
'Emby',
];
export const ServiceTypes = ['Other', 'Sonarr', 'Radarr', 'Lidarr', 'qBittorrent', 'Plex', 'Emby'];
export interface serviceItem {
[x: string]: any;

View File

@@ -4,6 +4,4 @@ export default {
title: 'Item Shelf',
};
export const Default = (args: any) => (
<AppShelf {...args} />
);
export const Default = (args: any) => <AppShelf {...args} />;

View File

@@ -20,12 +20,10 @@ function SettingsMenu(props: any) {
}, []);
return (
<Group direction="column" grow>
<TextInput
label="Search bar querry url"
defaultValue={config.searchUrl}
onChange={
(e) => {
onChange={(e) => {
setConfig({
...config,
searchUrl: e.target.value,
@@ -37,8 +35,7 @@ function SettingsMenu(props: any) {
searchUrl: e.target.value,
})
);
}
}
}}
/>
<Group direction="column">
<Switch

View File

@@ -13,5 +13,5 @@ export function loadSettings(path: string): Settings | null {
export interface Settings {
searchUrl: string;
searchBar: boolean,
searchBar: boolean;
}