diff --git a/packages/theme/api-report.md b/packages/theme/api-report.md index 59c894ba19..e8f7ef30f8 100644 --- a/packages/theme/api-report.md +++ b/packages/theme/api-report.md @@ -8,7 +8,6 @@ import { Overrides } from '@material-ui/core/styles/overrides'; import { Palette } from '@material-ui/core/styles/createPalette'; import { PaletteOptions } from '@material-ui/core/styles/createPalette'; import { PaletteOptions as PaletteOptions_2 } from '@mui/material/styles/createPalette'; -import { default as React_2 } from 'react'; import { ReactNode } from 'react'; import { Theme } from '@mui/material/styles'; import { Theme as Theme_2 } from '@material-ui/core'; @@ -411,7 +410,7 @@ export interface UnifiedThemeOptions { // @public export function UnifiedThemeProvider( props: UnifiedThemeProviderProps, -): React_2.ReactNode; +): JSX.Element; // @public export interface UnifiedThemeProviderProps { diff --git a/packages/theme/src/unified/UnifiedThemeProvider.tsx b/packages/theme/src/unified/UnifiedThemeProvider.tsx index 72fb708c23..93bceac022 100644 --- a/packages/theme/src/unified/UnifiedThemeProvider.tsx +++ b/packages/theme/src/unified/UnifiedThemeProvider.tsx @@ -42,11 +42,13 @@ export interface UnifiedThemeProviderProps { * * @public */ -export function UnifiedThemeProvider(props: UnifiedThemeProviderProps) { +export function UnifiedThemeProvider( + props: UnifiedThemeProviderProps, +): JSX.Element { const { children, theme, noCssBaseline } = props; let result = noCssBaseline ? ( - children + <>{children} ) : ( <>