Skip to content

Commit

Permalink
[DataGrid] Refactor: remove missed theme (mui#16122)
Browse files Browse the repository at this point in the history
  • Loading branch information
romgrk authored Jan 10, 2025
1 parent 9c2224f commit e93f4d2
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import clsx from 'clsx';
import { styled, SxProps, Theme } from '@mui/system';
import composeClasses from '@mui/utils/composeClasses';
import { vars } from '../../constants/cssVariables';
import type { DataGridProcessedProps } from '../../models/props/DataGridProps';
import { getDataGridUtilityClass } from '../../constants/gridClasses';
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
Expand All @@ -23,15 +24,15 @@ const GridPanelContentRoot = styled('div', {
name: 'MuiDataGrid',
slot: 'PanelContent',
overridesResolver: (props, styles) => styles.panelContent,
})<{ ownerState: OwnerState }>(({ theme }) => ({
})<{ ownerState: OwnerState }>({
display: 'flex',
flexDirection: 'column',
overflow: 'auto',
flex: '1 1',
maxHeight: 400,
padding: theme.spacing(2.5, 1.5, 2, 1),
gap: theme.spacing(2.5),
}));
padding: vars.spacing(2.5, 1.5, 2, 1),
gap: vars.spacing(2.5),
});

function GridPanelContent(props: React.HTMLAttributes<HTMLDivElement> & { sx?: SxProps<Theme> }) {
const { className, ...other } = props;
Expand Down

0 comments on commit e93f4d2

Please sign in to comment.