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: {