mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-09 09:04:20 +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 "react-toastify/dist/ReactToastify.css"
|
||||||
import styles from "./styles.module.scss"
|
import styles from "./styles.module.scss"
|
||||||
import MainMenu from "../components/Navigation/MainMenu"
|
import MainMenu from "../components/Navigation/MainMenu"
|
||||||
|
import LogoutButton from "../components/LogoutButton/LogoutButton"
|
||||||
|
|
||||||
interface Route {
|
interface Route {
|
||||||
route: { routes: RouteConfig[] }
|
route: { routes: RouteConfig[] }
|
||||||
@ -35,6 +36,9 @@ const App = ({ route }: Route): JSX.Element => (
|
|||||||
<div className={styles.menuWrapper}>
|
<div className={styles.menuWrapper}>
|
||||||
<MainMenu />
|
<MainMenu />
|
||||||
</div>
|
</div>
|
||||||
|
<div className={styles.logoutWrapper}>
|
||||||
|
<LogoutButton />
|
||||||
|
</div>
|
||||||
</header>
|
</header>
|
||||||
{/* Child routes won't render without this */}
|
{/* Child routes won't render without this */}
|
||||||
{renderRoutes(route.routes)}
|
{renderRoutes(route.routes)}
|
||||||
|
@ -62,3 +62,11 @@
|
|||||||
right: 10px;
|
right: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.logoutWrapper {
|
||||||
|
position: absolute;
|
||||||
|
bottom: -22px;
|
||||||
|
right: 10px;
|
||||||
|
padding: 0;
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
padding: 0;
|
||||||
|
background: none;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user