From 27884656a3cbcff26f570ce7e9f7af4fa2abe38d Mon Sep 17 00:00:00 2001 From: ajnart Date: Fri, 13 Jan 2023 18:56:00 +0900 Subject: [PATCH] Fix build errors and lint --- src/components/Dashboard/Wrappers/Sidebar/Sidebar.tsx | 10 ++-------- .../Dashboard/Wrappers/gridstack/init-gridstack.ts | 2 +- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/components/Dashboard/Wrappers/Sidebar/Sidebar.tsx b/src/components/Dashboard/Wrappers/Sidebar/Sidebar.tsx index 183ae4368..f97e7da02 100644 --- a/src/components/Dashboard/Wrappers/Sidebar/Sidebar.tsx +++ b/src/components/Dashboard/Wrappers/Sidebar/Sidebar.tsx @@ -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 ( - + {isGridstackReady && } ); diff --git a/src/components/Dashboard/Wrappers/gridstack/init-gridstack.ts b/src/components/Dashboard/Wrappers/gridstack/init-gridstack.ts index 6da312a9d..b6d90f6d6 100644 --- a/src/components/Dashboard/Wrappers/gridstack/init-gridstack.ts +++ b/src/components/Dashboard/Wrappers/gridstack/init-gridstack.ts @@ -13,7 +13,7 @@ export const initializeGridstack = ( items: AppType[], widgets: IWidget[], isEditMode: boolean, - wrapperColumnCount: 3 | 6 | 12, + wrapperColumnCount: number, shapeSize: 'sm' | 'md' | 'lg', tilesWithUnknownLocation: TileWithUnknownLocation[], events: {