Skip to content

Commit

Permalink
[DataGrid] Use columnsManagement slot (@k-rajat19) (#15821)
Browse files Browse the repository at this point in the history
Co-authored-by: Rajat <[email protected]>
  • Loading branch information
github-actions[bot] and k-rajat19 authored Dec 10, 2024
1 parent ea8ce4e commit 634ba8c
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 634ba8c

Please sign in to comment.