Skip to content

Commit

Permalink
[DataGrid] Use columnsManagement slot (mui#15817)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-rajat19 authored and LukasTy committed Dec 19, 2024
1 parent ea919a1 commit 1944038
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import { GridPanelWrapper, GridPanelWrapperProps } from './GridPanelWrapper';
import { GridColumnsManagement } from '../columnsManagement';
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';

export interface GridColumnsPanelProps extends GridPanelWrapperProps {}
Expand All @@ -10,7 +9,7 @@ function GridColumnsPanel(props: GridColumnsPanelProps) {
const rootProps = useGridRootProps();
return (
<GridPanelWrapper {...props}>
<GridColumnsManagement {...rootProps.slotProps?.columnsManagement} />
<rootProps.slots.columnsManagement {...rootProps.slotProps?.columnsManagement} />
</GridPanelWrapper>
);
}
Expand Down

0 comments on commit 1944038

Please sign in to comment.