diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx index e3e5bac..e698d86 100644 --- a/src/components/Header/Header.jsx +++ b/src/components/Header/Header.jsx @@ -1,10 +1,11 @@ import styles from "./Header.module.css" -import {Link, NavLink} from "react-router"; -import {useEffect, useRef, useState} from "react"; +import { Link, NavLink } from "react-router"; +import { useEffect, useRef, useState } from "react"; -function Header(){ +function Header() { const [notificationMenu, setnotificationMenu] = useState(false); const [unreadNotification, setunreadNotification] = useState(true); + const [mobileMenu, setMobileMenu] = useState(false); const notificationRef = useRef(null); const [notifications, setNotifications] = useState([ @@ -15,7 +16,11 @@ function Header(){ useEffect(() => { const handleClickOutside = (event) => { - if (notificationRef.current && !notificationRef.current.contains(event.target) && !event.target.closest(`.${styles.bellBtn}`)) { + if ( + notificationRef.current && + !notificationRef.current.contains(event.target) && + !event.target.closest(`.${styles.bellBtn}`) + ) { setnotificationMenu(false); } }; @@ -26,55 +31,91 @@ function Header(){ }; }, []); - - return (
-
-