From e75993b02401f47952bd42f4bcc9579cf6462d94 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 12 May 2021 18:44:06 +0200 Subject: [PATCH] Improve menu bar --- src/ui/routes/MainRoute.tsx | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/ui/routes/MainRoute.tsx b/src/ui/routes/MainRoute.tsx index 7eb007f..4cc67eb 100644 --- a/src/ui/routes/MainRoute.tsx +++ b/src/ui/routes/MainRoute.tsx @@ -23,8 +23,8 @@ import InboxIcon from "@material-ui/icons/Inbox"; import NotificationsIcon from "@material-ui/icons/Notifications"; import React from "react"; import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; - -const drawerWidth = 240; +import { AccountHelper } from "../../helpers/AccountHelper"; +import CloseSharpIcon from "@material-ui/icons/CloseSharp"; const useStyles = makeStyles((theme) => ({ root: { @@ -42,7 +42,6 @@ const useStyles = makeStyles((theme) => ({ }, appBar: { zIndex: theme.zIndex.drawer + 1, - marginLeft: drawerWidth, width: `100%`, color: "white", }, @@ -109,7 +108,11 @@ export function MainRoute() { const classes = useStyles(); return ( - + Comunic Admin - - - - + + + {AccountHelper.currentAccount.name} +
+ {AccountHelper.currentAccount.email} +
+ + +