From 1efe7369e2e42711822e4a564094e9d84d27303f Mon Sep 17 00:00:00 2001 From: DiegoAndai Date: Fri, 31 May 2024 09:17:17 -0400 Subject: [PATCH] Remove IE-related warning --- packages/mui-material/src/ImageList/ImageList.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/packages/mui-material/src/ImageList/ImageList.js b/packages/mui-material/src/ImageList/ImageList.js index 5eddd5b2d0e93c..ee641bf92adb8a 100644 --- a/packages/mui-material/src/ImageList/ImageList.js +++ b/packages/mui-material/src/ImageList/ImageList.js @@ -70,20 +70,6 @@ const ImageList = React.forwardRef(function ImageList(inProps, ref) { [rowHeight, gap, variant], ); - React.useEffect(() => { - if (process.env.NODE_ENV !== 'production') { - // Detect Internet Explorer 8+ - if (document !== undefined && 'objectFit' in document.documentElement.style === false) { - console.error( - [ - 'MUI: ImageList v5+ no longer natively supports Internet Explorer.', - 'Use v4 of this component instead, or polyfill CSS object-fit.', - ].join('\n'), - ); - } - } - }, []); - const style = variant === 'masonry' ? { columnCount: cols, columnGap: gap, ...styleProp }