Skip to content

Commit 83fa3ff

Browse files
authored
[docs][material-ui] Fix display of colors in dark mode in palette customization page (#47403)
1 parent aa82baa commit 83fa3ff

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

docs/data/material/customization/palette/Intentions.js

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
import Box from '@mui/material/Box';
22
import Grid from '@mui/material/Grid';
33
import Typography from '@mui/material/Typography';
4-
import {
5-
createTheme,
6-
ThemeProvider,
7-
useTheme,
8-
rgbToHex,
9-
styled,
10-
} from '@mui/material/styles';
4+
import { useTheme, rgbToHex, styled } from '@mui/material/styles';
115

126
const Group = styled(Typography)(({ theme }) => ({
137
marginTop: theme.spacing(3),
@@ -25,7 +19,7 @@ const Color = styled(Grid)(({ theme }) => ({
2519
},
2620
}));
2721

28-
function IntentionsInner() {
22+
export default function Intentions() {
2923
const theme = useTheme();
3024

3125
const item = (color, name) => (
@@ -81,19 +75,3 @@ function IntentionsInner() {
8175
</Box>
8276
);
8377
}
84-
85-
export default function Intentions() {
86-
const theme = useTheme();
87-
88-
return (
89-
<ThemeProvider
90-
theme={createTheme({
91-
palette: {
92-
mode: theme.palette.mode,
93-
},
94-
})}
95-
>
96-
<IntentionsInner />
97-
</ThemeProvider>
98-
);
99-
}

0 commit comments

Comments
 (0)