diff --git a/src/components/Config/ConfigChanger.tsx b/src/components/Config/ConfigChanger.tsx index 9df1773f5..c9f1d204f 100644 --- a/src/components/Config/ConfigChanger.tsx +++ b/src/components/Config/ConfigChanger.tsx @@ -47,7 +47,8 @@ export default function ConfigChanger() { ); } -const useConfigsQuery = () => useQuery({ +const useConfigsQuery = () => + useQuery({ queryKey: ['config/get-all'], queryFn: fetchConfigs, }); diff --git a/src/components/Dashboard/Mobile/Ribbon/MobileRibbonSidebarDrawer.tsx b/src/components/Dashboard/Mobile/Ribbon/MobileRibbonSidebarDrawer.tsx index 9a9002291..b09749ea2 100644 --- a/src/components/Dashboard/Mobile/Ribbon/MobileRibbonSidebarDrawer.tsx +++ b/src/components/Dashboard/Mobile/Ribbon/MobileRibbonSidebarDrawer.tsx @@ -11,15 +11,15 @@ export const MobileRibbonSidebarDrawer = ({ location, ...props }: MobileRibbonSidebarDrawerProps) => ( - {location} sidebar} - style={{ - display: 'flex', - justifyContent: 'center', - }} - {...props} - > - - - ); + {location} sidebar} + style={{ + display: 'flex', + justifyContent: 'center', + }} + {...props} + > + + +); diff --git a/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx b/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx index f74fbccb7..2d38dfbe4 100644 --- a/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx +++ b/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx @@ -1,5 +1,5 @@ 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 { ReactNode } from 'react'; import { v4 as uuidv4 } from 'uuid'; diff --git a/src/components/Dashboard/Modals/SelectElement/Components/Shared/GenericElementType.tsx b/src/components/Dashboard/Modals/SelectElement/Components/Shared/GenericElementType.tsx index 7fad7c4d4..07938aba2 100644 --- a/src/components/Dashboard/Modals/SelectElement/Components/Shared/GenericElementType.tsx +++ b/src/components/Dashboard/Modals/SelectElement/Components/Shared/GenericElementType.tsx @@ -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 { useTranslation } from 'next-i18next'; import Image from 'next/image'; diff --git a/src/tools/config/migrateConfig.ts b/src/tools/config/migrateConfig.ts index 6ecf89c2e..230d47378 100644 --- a/src/tools/config/migrateConfig.ts +++ b/src/tools/config/migrateConfig.ts @@ -68,7 +68,7 @@ export function migrateConfig(config: Config): ConfigType { shape: { location: { x: (idx * 3) % 18, - y: Math.floor((idx / 6)) * 3, + y: Math.floor(idx / 6) * 3, }, size: { width: 3,