display logout button on header

This commit is contained in:
memeriau 2022-02-02 23:13:01 +01:00
parent 998691b542
commit fd597a8297
3 changed files with 14 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import "normalize.css/normalize.css"
import "react-toastify/dist/ReactToastify.css"
import styles from "./styles.module.scss"
import MainMenu from "../components/Navigation/MainMenu"
import LogoutButton from "../components/LogoutButton/LogoutButton"
interface Route {
route: { routes: RouteConfig[] }
@ -35,6 +36,9 @@ const App = ({ route }: Route): JSX.Element => (
<div className={styles.menuWrapper}>
<MainMenu />
</div>
<div className={styles.logoutWrapper}>
<LogoutButton />
</div>
</header>
{/* Child routes won't render without this */}
{renderRoutes(route.routes)}

View File

@ -62,3 +62,11 @@
right: 10px;
text-align: center;
}
.logoutWrapper {
position: absolute;
bottom: -22px;
right: 10px;
padding: 0;
background: none;
}

View File

@ -2,6 +2,8 @@
text-align: center;
button {
padding: 0;
background: none;
font-weight: normal;
font-size: 0.9em;
}