Skip to content

Commit

Permalink
index: Drop adaptV4Theme()
Browse files Browse the repository at this point in the history
  • Loading branch information
zmc committed May 11, 2023
1 parent ffad8e0 commit 9e9daeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import axios from "axios";
import CssBaseline from "@mui/material/CssBaseline";
import { ReactQueryDevtools } from "react-query/devtools";
import useMediaQuery from "@mui/material/useMediaQuery";
import { createTheme, ThemeProvider, StyledEngineProvider, adaptV4Theme } from "@mui/material/styles";
import { createTheme, ThemeProvider, StyledEngineProvider } from "@mui/material/styles";
import { Theme } from '@mui/material/styles';

import "./index.css";
Expand Down Expand Up @@ -80,7 +80,7 @@ export default function Root() {
};
const theme = React.useMemo(() => {
const paletteType = darkMode ? "dark" : "light";
const theme = createTheme(adaptV4Theme({ palette: { mode: paletteType } }));
const theme = createTheme({ palette: { mode: paletteType } });
if (darkMode) {
theme.palette.background.default = "#181818";
theme.palette.background.paper = "#303030";
Expand Down

0 comments on commit 9e9daeb

Please sign in to comment.