mirror of
https://github.com/yude-jp/yude.jp
synced 2025-10-13 03:38:36 +09:00
Cleanup old code
This commit is contained in:
@@ -14,7 +14,6 @@ const Layout = (props) => {
|
||||
|
||||
const [isMounted, setIsMounted] = useState(false);
|
||||
const { theme, setTheme, getTheme } = useTheme();
|
||||
let moon = "🌙";
|
||||
useEffect(() => {
|
||||
setIsMounted(true);
|
||||
}, []);
|
||||
@@ -22,8 +21,6 @@ const Layout = (props) => {
|
||||
if (isMounted) {
|
||||
setTheme(theme === "light" ? "dark" : "light");
|
||||
}
|
||||
if (theme == "light") moon = "🌙";
|
||||
if (theme == "dark") moon = "🌅";
|
||||
};
|
||||
console.log(theme);
|
||||
return (
|
||||
|
Reference in New Issue
Block a user