💄 Prettier

This commit is contained in:
ajnart
2023-01-08 13:59:24 +09:00
parent 9af2ee4882
commit 84864a0578
6 changed files with 3 additions and 6 deletions

View File

@@ -10,7 +10,6 @@ import { useConfigContext } from '../../../../../../config/provider';
import { useConfigStore } from '../../../../../../config/store';
import { openContextModalGeneric } from '../../../../../../tools/mantineModalManagerExtensions';
import { AppType } from '../../../../../../types/app';
import { appTileDefinition } from '../../../../Tiles/Apps/AppTile';
import { CategoryEditModalInnerProps } from '../../../../Wrappers/Category/CategoryEditModal';
import { useStyles } from '../Shared/styles';

View File

@@ -1,6 +1,5 @@
/* eslint-disable react/no-unknown-property */
import { ReactNode, RefObject } from 'react';
import widgets from '../../../widgets';
interface GridstackTileWrapperProps {
id: string;

View File

@@ -42,6 +42,7 @@ const SidebarInner = ({ location }: DashboardSidebarInnerProps) => {
className="grid-stack grid-stack-sidebar"
style={{ transitionDuration: '0s', height: '100%' }}
data-sidebar={location}
// eslint-disable-next-line react/no-unknown-property
gs-min-row={minRow}
>
<WrapperContent apps={apps} refs={refs} widgets={widgets} />

View File

@@ -4,7 +4,6 @@ import { ActionIcon, Button, Group, Title, Tooltip } from '@mantine/core';
import { IconEditCircle, IconEditCircleOff } from '@tabler/icons';
import { getCookie } from 'cookies-next';
import { Trans, useTranslation } from 'next-i18next';
import { useEffect } from 'react';
import { hideNotification, showNotification } from '@mantine/notifications';
import { useConfigContext } from '../../../../../config/provider';
import { useScreenSmallerThan } from '../../../../../hooks/useScreenSmallerThan';

View File

@@ -17,7 +17,7 @@ export async function getServerSideProps({
res,
locale,
}: GetServerSidePropsContext): Promise<{ props: DashboardServerSideProps }> {
// Get all the configs in the /data/configs folder
// Get all the configs in the /data/configs folder
// All the files that end in ".json"
const configs = fs.readdirSync('./data/configs').filter((file) => file.endsWith('.json'));

View File

@@ -37,10 +37,9 @@ import {
IconSun,
} from '@tabler/icons';
import { motion } from 'framer-motion';
import axios from 'axios';
import { Logo } from '../components/layout/Logo';
import { usePrimaryGradient } from '../components/layout/useGradient';
import { backendMigrateConfig } from '../tools/config/backendMigrateConfig';
import axios from 'axios';
const useStyles = createStyles((theme) => ({
root: {