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',