From 0f0d907cc4e18bf4e6afedb2d369b07a20ea7bc5 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 12 Jun 2022 18:55:26 +0200 Subject: [PATCH] Fix issues on main route --- src/ui/routes/MainRoute.tsx | 56 ++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/ui/routes/MainRoute.tsx b/src/ui/routes/MainRoute.tsx index 1d9fb69..1c9204d 100644 --- a/src/ui/routes/MainRoute.tsx +++ b/src/ui/routes/MainRoute.tsx @@ -4,6 +4,10 @@ * @author Pierre Hubert */ +import { Home, Person } from "@mui/icons-material"; +import CloseSharpIcon from "@mui/icons-material/CloseSharp"; +import GroupIcon from "@mui/icons-material/Group"; +import HistoryIcon from "@mui/icons-material/History"; import { AppBar, Divider, @@ -12,23 +16,18 @@ import { ListItem, ListItemIcon, ListItemText, - makeStyles, Paper, Toolbar, Typography, } from "@mui/material"; -import { Home, Person } from "@mui/icons-material"; -import CloseSharpIcon from "@mui/icons-material/CloseSharp"; -import GroupIcon from "@mui/icons-material/Group"; -import HistoryIcon from "@mui/icons-material/History"; import React from "react"; import { BrowserRouter as Router, Route, Routes, + useMatch, useNavigate, useParams, - useMatch, } from "react-router-dom"; import { AccountHelper, AdminAccountRole } from "../../helpers/AccountHelper"; import { AccountLogsRoute } from "./AccountLogsRoute"; @@ -121,7 +120,7 @@ export function MainRoute() { }} color="primary" > - + - - - + } /> - - - + } + /> - - - + } + /> - - - + } + /> - - - + } + /> - - - + } + /> - - - + } />