Formatting and linting

This commit is contained in:
ajnart
2022-12-22 11:30:50 +09:00
parent ecc61d5970
commit e982515bb5
5 changed files with 17 additions and 16 deletions

View File

@@ -47,7 +47,8 @@ export default function ConfigChanger() {
);
}
const useConfigsQuery = () => useQuery({
const useConfigsQuery = () =>
useQuery({
queryKey: ['config/get-all'],
queryFn: fetchConfigs,
});

View File

@@ -11,15 +11,15 @@ export const MobileRibbonSidebarDrawer = ({
location,
...props
}: MobileRibbonSidebarDrawerProps) => (
<Drawer
position={location}
title={<Title order={4}>{location} sidebar</Title>}
style={{
display: 'flex',
justifyContent: 'center',
}}
{...props}
>
<DashboardSidebar location={location} />
</Drawer>
);
<Drawer
position={location}
title={<Title order={4}>{location} sidebar</Title>}
style={{
display: 'flex',
justifyContent: 'center',
}}
{...props}
>
<DashboardSidebar location={location} />
</Drawer>
);

View File

@@ -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';

View File

@@ -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';

View File

@@ -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,