theme: fix UnifiedThemeProvider type
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
committed by
Philipp Hugenroth
parent
ac45497e1e
commit
8791536177
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user