From aaabcdedb7bef91955162e01cd010aa797cafc03 Mon Sep 17 00:00:00 2001 From: dan13ram Date: Tue, 4 Jan 2022 06:17:01 +0530 Subject: [PATCH] fix: reverted un-intended changes --- packages/web/components/Dashboard/GridItem.tsx | 16 +++++----------- packages/web/components/Dashboard/config.ts | 1 - 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/packages/web/components/Dashboard/GridItem.tsx b/packages/web/components/Dashboard/GridItem.tsx index 24f340f8..bbf98a2f 100644 --- a/packages/web/components/Dashboard/GridItem.tsx +++ b/packages/web/components/Dashboard/GridItem.tsx @@ -13,23 +13,17 @@ export interface Params { } export type MetaBoxProps = { - title?: string; - sx?: Record; - p?: number; + title: string; children: React.ReactNode; + sx: Record; }; -export const GridItem: React.FC = ({ - title, - sx, - p = 6, - children, -}) => ( - +export const GridItem: React.FC = ({ children, title, sx }) => ( + {(params: Params) => ( - {title && {title}} + {title} {children} )} diff --git a/packages/web/components/Dashboard/config.ts b/packages/web/components/Dashboard/config.ts index 055267cf..1c8d9af1 100644 --- a/packages/web/components/Dashboard/config.ts +++ b/packages/web/components/Dashboard/config.ts @@ -57,7 +57,6 @@ export const gridConfig = { pl: 6, }, '& > div': { - pointerEvents: editable ? 'none' : 'initial', bg: editable ? 'blackAlpha.500' : 'blackAlpha.300', backdropFilter: 'blur(10px)', borderBottomRadius: 'lg',