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'], queryKey: ['config/get-all'],
queryFn: fetchConfigs, queryFn: fetchConfigs,
}); });

View File

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

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 { TablerIcon } from '@tabler/icons';
import { useTranslation } from 'next-i18next'; import { useTranslation } from 'next-i18next';
import Image from 'next/image'; import Image from 'next/image';

View File

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