diff --git a/code/frontend/src/components/Header.tsx b/code/frontend/src/components/Header.tsx index e5d36aa..9898645 100644 --- a/code/frontend/src/components/Header.tsx +++ b/code/frontend/src/components/Header.tsx @@ -5,6 +5,7 @@ import Box from '@mui/material/Box'; import InboxIcon from "@mui/icons-material/Inbox"; import MailIcon from '@mui/icons-material/Mail'; import MenuIcon from '@mui/icons-material/Menu'; +import { Height } from "@mui/icons-material"; function Header() { const [isOpen, setIsOpen] = useState(false); @@ -21,7 +22,7 @@ function Header() { - {index % 2 === 0 ? : } + {React.createElement(iconList[index])} @@ -66,38 +67,6 @@ function Header() { } -function Menu1({isOpen, toggleMenu, setIsOpen, iconRef}: any) { - const menuRef = useRef(null); - - useEffect(() => { - function handleClickOutside(event: MouseEvent) { - if (menuRef.current && !menuRef.current.contains(event.target as Node) && !iconRef.current.contains(event.target as Node)) { - setIsOpen(false); - } - } - - document.addEventListener("mousedown", handleClickOutside); - return () => { - document.removeEventListener("mousedown", handleClickOutside); - }; - }, []); - - return ( -
- - Option 1 - Option 2 - Option 3 - -
- ); -}; - - // EXPORT VARIABLES export default Header; \ No newline at end of file