diff --git a/frontend/src/components/Navbar.tsx b/frontend/src/components/Navbar.tsx index d1081304..e183dfb9 100644 --- a/frontend/src/components/Navbar.tsx +++ b/frontend/src/components/Navbar.tsx @@ -3,11 +3,11 @@ import { useRecoilValue, useSetRecoilState } from "recoil"; import { loggedInState, tokenState, userState } from "../store/atoms/auth"; import { Link, useLocation } from "react-router-dom"; import toast from "react-hot-toast"; -import logo from '../assets/favicon.png'; -import { FaSun, FaMoon } from 'react-icons/fa'; +import logo from "../assets/favicon.png"; +import { FaSun, FaMoon } from "react-icons/fa"; interface NavbarProps { - theme: 'light' | 'dark'; + theme: "light" | "dark"; toggleTheme: () => void; } @@ -36,7 +36,7 @@ const Navbar: React.FC = ({ theme, toggleTheme }) => { localStorage.removeItem("token"); setTokenState(""); closeMenu(); - toast.success('Logged out successfully'); + toast.success("Logged out successfully"); }; const getNavLinkClass = (path: string) => { @@ -46,148 +46,253 @@ const Navbar: React.FC = ({ theme, toggleTheme }) => { }; return ( - + ); };