mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-09 00:54:21 +02:00
display logout button on header
This commit is contained in:
parent
998691b542
commit
fd597a8297
@ -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)}
|
||||
|
@ -62,3 +62,11 @@
|
||||
right: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logoutWrapper {
|
||||
position: absolute;
|
||||
bottom: -22px;
|
||||
right: 10px;
|
||||
padding: 0;
|
||||
background: none;
|
||||
}
|
||||
|
@ -2,6 +2,8 @@
|
||||
text-align: center;
|
||||
|
||||
button {
|
||||
padding: 0;
|
||||
background: none;
|
||||
font-weight: normal;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user