mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-06 21:45:47 +01:00
Eslint files
This commit is contained in:
@@ -35,7 +35,7 @@ export default function AddItemShelfItem(props: any) {
|
|||||||
});
|
});
|
||||||
return (
|
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>
|
<Center>
|
||||||
<Image
|
<Image
|
||||||
height={120}
|
height={120}
|
||||||
@@ -49,6 +49,7 @@ export default function AddItemShelfItem(props: any) {
|
|||||||
onSubmit={form.onSubmit(() => {
|
onSubmit={form.onSubmit(() => {
|
||||||
addItem(form.values);
|
addItem(form.values);
|
||||||
setOpened(false);
|
setOpened(false);
|
||||||
|
form.reset();
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<Group direction="column" grow>
|
<Group direction="column" grow>
|
||||||
@@ -81,7 +82,7 @@ export default function AddItemShelfItem(props: any) {
|
|||||||
/>
|
/>
|
||||||
<Select
|
<Select
|
||||||
label="Select the type of service (used for API calls)"
|
label="Select the type of service (used for API calls)"
|
||||||
defaultValue={'Other'}
|
defaultValue="Other"
|
||||||
placeholder="Pick one"
|
placeholder="Pick one"
|
||||||
value={form.values.type}
|
value={form.values.type}
|
||||||
required
|
required
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export function ColorSchemeToggle() {
|
|||||||
<Box
|
<Box
|
||||||
onClick={() => toggleColorScheme()}
|
onClick={() => toggleColorScheme()}
|
||||||
sx={(theme) => ({
|
sx={(theme) => ({
|
||||||
cursor: "pointer",
|
cursor: 'pointer',
|
||||||
color: theme.colorScheme === 'dark' ? theme.colors.yellow[4] : theme.colors.blue[6],
|
color: theme.colorScheme === 'dark' ? theme.colors.yellow[4] : theme.colors.blue[6],
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export default function SaveConfigComponent(props: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Button leftIcon={<Download/>} variant='outline' onClick={onClick}>
|
<Button leftIcon={<Download />} variant="outline" onClick={onClick}>
|
||||||
Download your config
|
Download your config
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ export function Footer({ links }: FooterCenteredProps) {
|
|||||||
mb={15}
|
mb={15}
|
||||||
>
|
>
|
||||||
<Group className={classes.links}>{items}</Group>
|
<Group className={classes.links}>{items}</Group>
|
||||||
<Group spacing={'xs'} position="right" noWrap>
|
<Group spacing="xs" position="right" noWrap>
|
||||||
<ActionIcon<'a'> component="a" href={`https://github.com/ajnart/myhomepage`} size="lg">
|
<ActionIcon<'a'> component="a" href="https://github.com/ajnart/myhomepage" size="lg">
|
||||||
<BrandGithub size={18} />
|
<BrandGithub size={18} />
|
||||||
</ActionIcon>
|
</ActionIcon>
|
||||||
</Group>
|
</Group>
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ export function Header({ links }: HeaderResponsiveProps) {
|
|||||||
<Group spacing={5} className={classes.links}>
|
<Group spacing={5} className={classes.links}>
|
||||||
{items}
|
{items}
|
||||||
</Group>
|
</Group>
|
||||||
<SettingsMenuButton/>
|
<SettingsMenuButton />
|
||||||
|
|
||||||
<Burger
|
<Burger
|
||||||
opened={opened}
|
opened={opened}
|
||||||
|
|||||||
Reference in New Issue
Block a user