mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-02 11:36:01 +01:00
Prettier
This commit is contained in:
@@ -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}
|
||||
|
||||
10
components/AppShelf/AppShelf.d.ts
vendored
10
components/AppShelf/AppShelf.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -4,6 +4,4 @@ export default {
|
||||
title: 'Item Shelf',
|
||||
};
|
||||
|
||||
export const Default = (args: any) => (
|
||||
<AppShelf {...args} />
|
||||
);
|
||||
export const Default = (args: any) => <AppShelf {...args} />;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -13,5 +13,5 @@ export function loadSettings(path: string): Settings | null {
|
||||
|
||||
export interface Settings {
|
||||
searchUrl: string;
|
||||
searchBar: boolean,
|
||||
searchBar: boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user