diff --git a/components/NavBar.jsx b/components/NavBar.jsx index e624129..9b7d277 100644 --- a/components/NavBar.jsx +++ b/components/NavBar.jsx @@ -77,6 +77,10 @@ export default function NavBar() { router.reload(); }; + const toggleNightMode = () => { + setNightMode((prevMode) => !prevMode); + }; + const handleClickOutside = () => { setIsOpen(false); }; @@ -85,22 +89,15 @@ export default function NavBar() { return ( <> - + background-color: ${isNightMode ? "black" : "white"}; + color: ${isNightMode ? "white" : "black"}; + } + `} +
SIGN IN +
)} @@ -343,17 +343,9 @@ export default function NavBar() { > SIGN IN - - - + )}