Kenny Logout - I'm Alright (theme from Caddyshack)
This commit is contained in:
parent
cf3cb2a895
commit
63a02da413
@ -8,7 +8,7 @@ import Morceaux from "../pages/Morceaux";
|
||||
import MorceauDetail from "../pages/MorceauDetail";
|
||||
import Inventaire from "../pages/Inventaire";
|
||||
import Login from "../pages/Login";
|
||||
|
||||
import Logout from "../pages/Logout";
|
||||
const App = () => {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
@ -22,6 +22,7 @@ const App = () => {
|
||||
<Route path="morceaux/:id" element={<MorceauDetail/>}/>
|
||||
<Route path="inventaire" element={<Inventaire/>}/>
|
||||
<Route path="login" element={<Login/>}/>
|
||||
<Route path="logout" element={<Logout/>}/>
|
||||
</Route>
|
||||
</Routes>
|
||||
</BrowserRouter>
|
||||
|
@ -34,6 +34,9 @@ const Topbar = () => {
|
||||
<Link className="nav-link" to="/login" >
|
||||
Connexion
|
||||
</Link>
|
||||
<Link className="nav-link" to="/logout" >
|
||||
Déconnexion
|
||||
</Link>
|
||||
<Dropdown className="dropdown-gestion-container">
|
||||
<Dropdown.Toggle className="dropdown-gestion" >
|
||||
Gestion
|
||||
|
15
GrossesMitaines/grosses-mitaines-ui/src/pages/Logout.js
Normal file
15
GrossesMitaines/grosses-mitaines-ui/src/pages/Logout.js
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
const Logout = () => {
|
||||
const response = fetch(`https://localhost:7292/api/Logout`, {
|
||||
method: 'POST',
|
||||
})
|
||||
|
||||
return (
|
||||
<div className="inventaire-form-container">
|
||||
<h3 className="text-center">Vous n'êtes plus connecté!</h3>
|
||||
<h5 className="text-center">Faites le party ou quelque-chose...</h5>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Logout;
|
Loading…
Reference in New Issue
Block a user