Skip to content

Commit

Permalink
[website] Fix homepage MD theme demo (#36027)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Feb 10, 2023
1 parent 576d5e9 commit d23b0fd
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions docs/src/components/home/MaterialDesignComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,21 +172,13 @@ function Demo({
className="mui-default-theme"
sx={{ flexGrow: 1, display: 'flex', alignItems: 'center', justifyContent: 'center' }}
>
{props.theme ? (
<CssVarsProvider disableStyleSheetGeneration theme={props.theme}>
{React.cloneElement(children, {
...(control && {
[control.prop]: propValue,
}),
})}
</CssVarsProvider>
) : (
React.cloneElement(children, {
<CssVarsProvider theme={props.theme}>
{React.cloneElement(children, {
...(control && {
[control.prop]: propValue,
}),
})
)}
})}
</CssVarsProvider>
</Box>
<Typography fontWeight="semiBold" variant="body2">
{name}
Expand Down

0 comments on commit d23b0fd

Please sign in to comment.