diff --git a/src/components/LogoutButton.jsx b/src/components/LogoutButton.jsx
index aa248d4..9477623 100644
--- a/src/components/LogoutButton.jsx
+++ b/src/components/LogoutButton.jsx
@@ -26,7 +26,9 @@ function LogoutButton() {
}
// Supprimer le token du local storage
localStorage.removeItem('token');
+ localStorage.setItem('activeItem', 'inventaire');
sessionStorage.removeItem('user_id');
+
setUserId(-1);
setIsAuthenticated(false);
// window.location.href = '/login';
diff --git a/src/components/Matos.jsx b/src/components/Matos.jsx
index 5d20757..eba2e2c 100644
--- a/src/components/Matos.jsx
+++ b/src/components/Matos.jsx
@@ -7,6 +7,8 @@ import {MenuItem, Menu, MenuMenu} from "semantic-ui-react";
import {useEffect, useState, useContext} from "react";
import HistoryTable from "./History";
import {AuthContext} from "../context/AuthContext";
+import item4 from "../ressources/item4.png";
+
@@ -28,10 +30,17 @@ function Matos(){
setActiveItem(name);
};
+ function handleClickMain(){
+ window.location.href = '/';
+ }
return(<>
-
Gestion du matériel
+
+
+
Gestion du matériel
+
+
{/* menu*/}