Skip to content

Commit

Permalink
[system] Make createGrid compatible with React 19 types (#44035)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongarciah authored Oct 8, 2024
1 parent 7f50487 commit e1f01cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mui-system/src/Grid/createGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default function createGrid(
>
{React.Children.map(children, (child) => {
if (
React.isValidElement(child) &&
React.isValidElement<{ container?: unknown }>(child) &&
isMuiElement(child, ['Grid']) &&
container &&
child.props.container
Expand Down

0 comments on commit e1f01cf

Please sign in to comment.