diff --git a/react/admin-panel/src/AdminDashboard.jsx b/react/admin-panel/src/AdminDashboard.jsx index 54a423d..a354537 100644 --- a/react/admin-panel/src/AdminDashboard.jsx +++ b/react/admin-panel/src/AdminDashboard.jsx @@ -8,7 +8,7 @@ import {LocaleContext} from "shared/locale"; // views import View404 from "./views/404"; -import clsx from "clsx"; +import {createTheme, CssBaseline, ThemeProvider} from "@mui/material"; const Overview = lazy(() => import('./views/overview')); const UserListView = lazy(() => import('./views/user/user-list')); const UserEditView = lazy(() => import('./views/user/user-edit')); @@ -58,25 +58,43 @@ export default function AdminDashboard(props) { hideDialog: hideDialog }; + const lightTheme = createTheme({ + palette: { + mode: 'light', + }, + }); + + const darkTheme = createTheme({ + palette: { + mode: 'dark', + background: { + paper: '#343a40', + }, + }, + }); + return - - {L("general.loading")}... }> - - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - }/> - } /> - - + + + + {L("general.loading")}... }> + + }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> + }/> + } /> + + +