diff --git a/frontend/src/components/layout/AppLayout.js b/frontend/src/components/layout/AppLayout.js
index eb36e66..81ba03f 100644
--- a/frontend/src/components/layout/AppLayout.js
+++ b/frontend/src/components/layout/AppLayout.js
@@ -1,15 +1,14 @@
import React, { useState } from "react";
-import { makeStyles } from "@mui/material/styles";
+import { useTheme } from "@mui/material/styles";
import AppRoutes from "./AppRoutes";
import TopBar from "./TopBar";
import Sidebar from "./Sidebar";
-import styles from "./styles";
-
-const useStyles = makeStyles(styles);
+import { getStyles } from "./styles";
const AppLayout = () => {
const [open, setOpen] = useState(false);
- const classes = useStyles();
+ const theme = useTheme();
+ const styles = getStyles(theme);
const handleDrawerOpen = () => {
setOpen(true);
@@ -20,11 +19,11 @@ const AppLayout = () => {
};
return (
-
+
diff --git a/frontend/src/components/layout/ProfileButton.js b/frontend/src/components/layout/ProfileButton.js
index 63173c2..c6aff69 100644
--- a/frontend/src/components/layout/ProfileButton.js
+++ b/frontend/src/components/layout/ProfileButton.js
@@ -7,16 +7,15 @@ import SettingsIcon from "@mui/icons-material/Settings";
import { useNavigate } from "react-router-dom";
import { useTuitioClient } from "@flare/tuitio-client-react";
import { useToast } from "../../hooks";
-import styles from "./styles";
-import { makeStyles } from "@mui/material/styles";
+import { getStyles } from "./styles";
+import { useTheme } from "@mui/material/styles";
import { useTranslation } from "react-i18next";
-const useStyles = makeStyles(styles);
-
const ProfileButton = () => {
const navigate = useNavigate();
const { error } = useToast();
- const classes = useStyles();
+ const theme = useTheme();
+ const styles = getStyles(theme);
const { t } = useTranslation();
const { logout } = useTuitioClient({
@@ -67,7 +66,7 @@ const ProfileButton = () => {
handleClose();
}}
>
-
+
{t("User.Profile.Label")}
@@ -78,13 +77,13 @@ const ProfileButton = () => {
handleClose();
}}
>
-
+
{t("User.Settings")}