From e1f01cf731b8d7b451d11f110ecc46c5717cb8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aar=C3=B3n=20Garc=C3=ADa=20Herv=C3=A1s?= Date: Tue, 8 Oct 2024 10:16:09 +0200 Subject: [PATCH] [system] Make createGrid compatible with React 19 types (#44035) --- packages/mui-system/src/Grid/createGrid.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mui-system/src/Grid/createGrid.tsx b/packages/mui-system/src/Grid/createGrid.tsx index e51923ec147a8d..790e0f55026c75 100644 --- a/packages/mui-system/src/Grid/createGrid.tsx +++ b/packages/mui-system/src/Grid/createGrid.tsx @@ -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