0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-22 20:20:09 +09:00

Cleanup old code

This commit is contained in:
yude 2021-05-22 10:25:10 +09:00
parent 5e068b05ca
commit 3f205d95f5
Signed by: yude
GPG Key ID: EB0FE5D925C4A968

View File

@ -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 (