Skip to content

Commit

Permalink
fix CssBaseline import in example code
Browse files Browse the repository at this point in the history
First code example on page uses
  `import { ThemeProvider, createTheme, CssBaseline } from '@mui/material/styles';`
which fails with
  `export 'CssBaseline' (imported as 'CssBaseline') was not found in '@mui/material/styles' ... `.

Presumably, `CssBaseline` was moved recently and the first code example was not updated correspondingly; last code example on page is fine.
  • Loading branch information
dd-ssc authored Jul 22, 2022
1 parent f804e55 commit 678778c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/data/material/customization/dark-mode/dark-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
You can make your application use the dark theme as the default—regardless of the user's preference—by adding `mode: 'dark'` to the `createTheme` helper:

```js
import { ThemeProvider, createTheme, CssBaseline } from '@mui/material/styles';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import CssBaseline from '@mui/material/CssBaseline';

const darkTheme = createTheme({
palette: {
Expand Down

0 comments on commit 678778c

Please sign in to comment.