⚒️ 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 Theme = () => {
const { toggleColorMode } = useColorMode(); const { toggleColorMode } = useColorMode();
const key = useColorModeValue("light", "dark"); const key = useColorModeValue("light", "dark");
const icon = useColorModeValue( const icon = useColorModeValue(<Moon size={22} />, <Sun size={22} />);
<Moon size={22} />,
<Sun size={22} />
);
return ( return (
<AnimatePresence exitBeforeEnter initial={false}> <AnimatePresence exitBeforeEnter initial={false}>
<motion.div <motion.div