From 33838fb03c37f06fbf5bb9401c081a48822393c8 Mon Sep 17 00:00:00 2001 From: Rom Grk Date: Tue, 19 Sep 2023 04:38:34 -0400 Subject: [PATCH] [datagrid] Fix typing of GridActionsCellItem (#10344) --- .../x-data-grid/src/components/cell/GridActionsCellItem.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/grid/x-data-grid/src/components/cell/GridActionsCellItem.tsx b/packages/grid/x-data-grid/src/components/cell/GridActionsCellItem.tsx index 11ef1e7dd9ed..2d3d5c5307a0 100644 --- a/packages/grid/x-data-grid/src/components/cell/GridActionsCellItem.tsx +++ b/packages/grid/x-data-grid/src/components/cell/GridActionsCellItem.tsx @@ -8,6 +8,8 @@ import { useGridRootProps } from '../../hooks/utils/useGridRootProps'; export type GridActionsCellItemProps = { label: string; icon?: React.ReactElement; + /** from https://mui.com/material-ui/api/button-base/#ButtonBase-prop-component */ + component?: React.ElementType; } & ( | ({ showInMenu?: false; icon: React.ReactElement } & IconButtonProps) | ({ showInMenu: true } & MenuItemProps)