Fix build errors and lint

This commit is contained in:
ajnart
2023-01-13 18:56:00 +09:00
parent 2765b6824f
commit 27884656a3
2 changed files with 3 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
import { Card, Group, Stack } from '@mantine/core';
import { Card } from '@mantine/core';
import { RefObject } from 'react';
import { useCardStyles } from '../../../layout/useCardStyles';
import { useGridstack } from '../gridstack/use-gridstack';
@@ -16,13 +16,7 @@ export const DashboardSidebar = ({ location, isGridstackReady }: DashboardSideba
} = useCardStyles(false);
return (
<Card
p={0}
m={0}
radius="lg"
className={cardClass}
w={300}
>
<Card p={0} m={0} radius="lg" className={cardClass} w={300}>
{isGridstackReady && <SidebarInner location={location} />}
</Card>
);

View File

@@ -13,7 +13,7 @@ export const initializeGridstack = (
items: AppType[],
widgets: IWidget<string, any>[],
isEditMode: boolean,
wrapperColumnCount: 3 | 6 | 12,
wrapperColumnCount: number,
shapeSize: 'sm' | 'md' | 'lg',
tilesWithUnknownLocation: TileWithUnknownLocation[],
events: {