Skip to content

Commit

Permalink
[datagrid] Fix typing of GridActionsCellItem (#10344)
Browse files Browse the repository at this point in the history
  • Loading branch information
romgrk committed Sep 19, 2023
1 parent bf60b47 commit 33838fb
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 33838fb

Please sign in to comment.