Refactored mui themes into their own files for increased readability

This commit is contained in:
Daniel Cojocea committed 2024-08-29 17:14:17 -04:00
1 parent 111501156f
commit 8fa1acd193
9 files changed
+406 -153

No files matched your search

+3 -2
View File
@@ -29,7 +29,8 @@ import CreateNewMaintenanceWindow from "./Pages/Maintenance/CreateMaintenanceWin
import PageSpeedDetails from "./Pages/PageSpeed/Details";
import PageSpeedConfigure from "./Pages/PageSpeed/Configure";
import { ThemeProvider } from "@emotion/react";
import theme, { darkTheme } from "./Utils/Theme";
import lightTheme from "./Utils/Theme/lightTheme";
import darkTheme from "./Utils/Theme/darkTheme";
import { useSelector } from "react-redux";
function App() {
@@ -42,7 +43,7 @@ function App() {
const mode = useSelector((state) => state.ui.mode);
return (
<ThemeProvider theme={mode === "light" ? theme : darkTheme}>
<ThemeProvider theme={mode === "light" ? lightTheme : darkTheme}>
<Routes>
<Route exact path="/" element={<HomeLayout />}>
<Route