diff --git a/app/(root)/page.tsx b/app/(root)/page.tsx index 08ef14c..a966c62 100644 --- a/app/(root)/page.tsx +++ b/app/(root)/page.tsx @@ -54,13 +54,25 @@ function Navbar({ darkMode, toggleDarkMode, isOpen, setIsOpen }: NavbarProps) { setDropdownOpen(false); }; + const handleToggleDarkMode = () => { + if (!darkMode) { + toggleDarkMode(); // Only toggle if currently light mode + } + }; + + const handleToggleLightMode = () => { + if (darkMode) { + toggleDarkMode(); // Only toggle if currently dark mode + } + }; + return (