feat: add new page transition

This commit is contained in:
Sonny
2024-10-31 23:37:28 +01:00
committed by Sonny
parent 5c4ee3a1cd
commit bce00c7855
6 changed files with 85 additions and 29 deletions

View File

@@ -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"