mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 15:17:58 +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 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user