Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 2 additions & 24 deletions docs/data/material/customization/palette/Intentions.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import Box from '@mui/material/Box';
import Grid from '@mui/material/Grid';
import Typography from '@mui/material/Typography';
import {
createTheme,
ThemeProvider,
useTheme,
rgbToHex,
styled,
} from '@mui/material/styles';
import { useTheme, rgbToHex, styled } from '@mui/material/styles';

const Group = styled(Typography)(({ theme }) => ({
marginTop: theme.spacing(3),
Expand All @@ -25,7 +19,7 @@ const Color = styled(Grid)(({ theme }) => ({
},
}));

function IntentionsInner() {
export default function Intentions() {
const theme = useTheme();

const item = (color, name) => (
Expand Down Expand Up @@ -81,19 +75,3 @@ function IntentionsInner() {
</Box>
);
}

export default function Intentions() {
const theme = useTheme();

return (
<ThemeProvider
theme={createTheme({
palette: {
mode: theme.palette.mode,
},
})}
>
<IntentionsInner />
</ThemeProvider>
);
}
Loading