⚒️ Theme improvements.

This commit is contained in:
pheralb 2022-06-29 17:36:40 +01:00
parent e3b7156f90
commit 5acf45a766

View File

@ -7,10 +7,8 @@ import { Moon, Sun } from "phosphor-react";
const Theme = () => {
const { toggleColorMode } = useColorMode();
const key = useColorModeValue("light", "dark");
const icon = useColorModeValue(
<Moon size={22} />,
<Sun size={22} />
);
const icon = useColorModeValue(<Moon size={22} />, <Sun size={22} />);
return (
<AnimatePresence exitBeforeEnter initial={false}>
<motion.div