mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
feat: add new page transition
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { useMantineColorScheme, ActionIcon } from '@mantine/core';
|
||||
import { TbSun, TbMoonStars } from 'react-icons/tb';
|
||||
import { ActionIcon, useMantineColorScheme } from '@mantine/core';
|
||||
import { TbMoonStars, TbSun } from 'react-icons/tb';
|
||||
|
||||
export function MantineThemeSwitcher() {
|
||||
const { colorScheme, toggleColorScheme } = useMantineColorScheme();
|
||||
return (
|
||||
<ActionIcon
|
||||
variant="default"
|
||||
variant="light"
|
||||
aria-label="Toggle color scheme"
|
||||
onClick={() => toggleColorScheme()}
|
||||
size="lg"
|
||||
|
||||
Reference in New Issue
Block a user