diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx index 1a44fdb..4ee13ff 100644 --- a/src/components/Header/Header.jsx +++ b/src/components/Header/Header.jsx @@ -7,7 +7,7 @@ function Header() { const [notificationMenu, setnotificationMenu] = useState(false); const [unreadNotification, setunreadNotification] = useState(true); const [mobileMenu, setMobileMenu] = useState(false); - const [notifications, setNotifications] = useState([]); + const [notifications, setNotifications] = useState([{"content" : "ok"}, {"content" : "pourquoi pas antoine"}]); const notificationRef = useRef(null); @@ -15,7 +15,10 @@ function Header() { useEffect(() => { async function loadNotifications() { const notifData = await getUserNotifications(); + /* setNotifications(notifData || []); + */ + } //loadNotifications(); @@ -105,7 +108,7 @@ function Header() { className={`${styles.notificationDiv} glassCard ${notificationMenu ? styles.activeNotificationDiv : ""}`} > {notifications.length === 0 ? ( -
Vous n'avez aucune notification !
+Vous n'avez aucune notification !
) : ( notifications.map((notification, index) => (