mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-13 17:05:47 +01:00
Formatting and linting
This commit is contained in:
@@ -47,7 +47,8 @@ export default function ConfigChanger() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const useConfigsQuery = () => useQuery({
|
const useConfigsQuery = () =>
|
||||||
|
useQuery({
|
||||||
queryKey: ['config/get-all'],
|
queryKey: ['config/get-all'],
|
||||||
queryFn: fetchConfigs,
|
queryFn: fetchConfigs,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -11,15 +11,15 @@ export const MobileRibbonSidebarDrawer = ({
|
|||||||
location,
|
location,
|
||||||
...props
|
...props
|
||||||
}: MobileRibbonSidebarDrawerProps) => (
|
}: MobileRibbonSidebarDrawerProps) => (
|
||||||
<Drawer
|
<Drawer
|
||||||
position={location}
|
position={location}
|
||||||
title={<Title order={4}>{location} sidebar</Title>}
|
title={<Title order={4}>{location} sidebar</Title>}
|
||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
}}
|
}}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
>
|
||||||
<DashboardSidebar location={location} />
|
<DashboardSidebar location={location} />
|
||||||
</Drawer>
|
</Drawer>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Group, Space, Stack, Text, UnstyledButton } from '@mantine/core';
|
import { Group, Space, Stack, Text, UnstyledButton } from '@mantine/core';
|
||||||
import { IconBox, IconStack, IconTextResize } from '@tabler/icons';
|
import { IconBox, IconStack } from '@tabler/icons';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import { ReactNode } from 'react';
|
import { ReactNode } from 'react';
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Button, Card, Center, Grid, ScrollArea, Stack, Text } from '@mantine/core';
|
import { Button, Card, Center, Grid, Stack, Text } from '@mantine/core';
|
||||||
import { TablerIcon } from '@tabler/icons';
|
import { TablerIcon } from '@tabler/icons';
|
||||||
import { useTranslation } from 'next-i18next';
|
import { useTranslation } from 'next-i18next';
|
||||||
import Image from 'next/image';
|
import Image from 'next/image';
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ export function migrateConfig(config: Config): ConfigType {
|
|||||||
shape: {
|
shape: {
|
||||||
location: {
|
location: {
|
||||||
x: (idx * 3) % 18,
|
x: (idx * 3) % 18,
|
||||||
y: Math.floor((idx / 6)) * 3,
|
y: Math.floor(idx / 6) * 3,
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
width: 3,
|
width: 3,
|
||||||
|
|||||||
Reference in New Issue
Block a user