+
>
);
}
diff --git a/reacthookspring/webclient/app/src/app/commons/navigation/sidebarNavigation/SidebarNavigation.jsx b/reacthookspring/webclient/app/src/app/commons/navigation/sidebarNavigation/SidebarNavigation.jsx
index 1407d07..83fcc50 100644
--- a/reacthookspring/webclient/app/src/app/commons/navigation/sidebarNavigation/SidebarNavigation.jsx
+++ b/reacthookspring/webclient/app/src/app/commons/navigation/sidebarNavigation/SidebarNavigation.jsx
@@ -9,7 +9,6 @@ import {
ListItem,
ListItemButton,
ListItemText,
- Stack,
Toolbar,
Typography
} from "@mui/material";
@@ -19,25 +18,23 @@ import {useTranslation} from "react-i18next";
import {useHistory} from "react-router-dom";
function SidebarNavigation(props) {
-
const headerStyles = HeaderStyles();
const drawerWidth = 240;
const {t} = useTranslation();
const history = useHistory();
-
return (
-
-
- theme.zIndex.drawer + 1}}>
+
+
+ theme.zIndex.drawer + 1}}>
-
-
- {props.title}
-
-
+

+
+ {props.title}
+
+
history.push("/logout")}>
+ onClick={() => history.push("/logout")}>
-
-
+
+
{props.menuItems.map((menuItem, index) => (
history.push(menuItem.link)}>
-
+
))}
@@ -62,11 +59,11 @@ function SidebarNavigation(props) {
-
+
{props.children}
- )
+ );
}
export default SidebarNavigation;
diff --git a/reacthookspring/webclient/app/src/index.js b/reacthookspring/webclient/app/src/index.js
index ea42528..3c5b7df 100755
--- a/reacthookspring/webclient/app/src/index.js
+++ b/reacthookspring/webclient/app/src/index.js
@@ -9,14 +9,14 @@ import {SnackbarProvider} from "notistack";
import MainTheme from "./app/assets/themes/MainTheme";
ReactDOM.render((
-
-
-
-
-
-
-
- ),
+
+
+
+
+
+
+
+),
document.getElementById("root")
);