mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
⚒️ Theme improvements.
This commit is contained in:
parent
e3b7156f90
commit
5acf45a766
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user