Skip to content

Commit

Permalink
[docs] Fix Gatsby sample config in CSS variables (#34024)
Browse files Browse the repository at this point in the history
  • Loading branch information
bicstone committed Aug 29, 2022
1 parent 81142e1 commit 0640763
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -194,7 +194,11 @@ import React from 'react';
import { getInitColorSchemeScript } from '@mui/material/styles';

export function onRenderBody({ setPreBodyComponents }) {
setPreBodyComponents([getInitColorSchemeScript()]);
setPreBodyComponents([
<React.Fragment key="mui-init-color-scheme-script">
{getInitColorSchemeScript()}
</React.Fragment>,
]);
}
```

Expand Down

0 comments on commit 0640763

Please sign in to comment.