Fixed background color not changing on theme swap

This commit is contained in:
Daniel Cojocea committed 2024-09-06 16:32:38 -04:00
1 parent 0598a08f34
commit 79ba916a44
9 files changed
+71 -43

No files matched your search

+2
View File
@@ -32,6 +32,7 @@ import { ThemeProvider } from "@emotion/react";
import lightTheme from "./Utils/Theme/lightTheme";
import darkTheme from "./Utils/Theme/darkTheme";
import { useSelector } from "react-redux";
import { CssBaseline } from "@mui/material";
function App() {
const AdminCheckedRegister = withAdminCheck(Register);
@@ -45,6 +46,7 @@ function App() {
return (
<ThemeProvider theme={mode === "light" ? lightTheme : darkTheme}>
<CssBaseline />
<Routes>
<Route exact path="/" element={<HomeLayout />}>
<Route