theme: fix UnifiedThemeProvider type

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-12-31 16:50:03 +01:00
committed by Philipp Hugenroth
parent ac45497e1e
commit 8791536177
2 changed files with 5 additions and 4 deletions
@@ -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}</>
) : (
<>
<CssBaseline />