diff --git a/components/themetoggle.tsx b/components/themetoggle.tsx index fd83cda..88f95d1 100644 --- a/components/themetoggle.tsx +++ b/components/themetoggle.tsx @@ -16,9 +16,17 @@ export default function ThemeToggle() { window.localStorage.setItem("theme", activeTheme); }, [activeTheme]); - return ( - setActiveTheme(inactiveTheme)} href="#"> - 🌙 - - ) + if(activeTheme == 'light') { + return ( + setActiveTheme(inactiveTheme)} href="#"> + 🌙 + + ) + } else { + return ( + setActiveTheme(inactiveTheme)} href="#"> + ☀️ + + ) + } } \ No newline at end of file