Anderson Oki 7 months ago
parent cc2dd58400
commit 8a0e5c7876

@ -20,6 +20,7 @@ import {
Group, Group,
Stack, Stack,
Text, Text,
useComputedColorScheme,
useMantineColorScheme, useMantineColorScheme,
} from "@mantine/core"; } from "@mantine/core";
import { useHover } from "@mantine/hooks"; import { useHover } from "@mantine/hooks";
@ -98,8 +99,10 @@ function useIsActive(parent: string, route: RouteObject) {
const AppNavbar: FunctionComponent = () => { const AppNavbar: FunctionComponent = () => {
const [selection, select] = useState<string | null>(null); const [selection, select] = useState<string | null>(null);
const { colorScheme, toggleColorScheme } = useMantineColorScheme(); const { toggleColorScheme } = useMantineColorScheme();
const dark = colorScheme === "dark"; const computedColorScheme = useComputedColorScheme("light");
const dark = computedColorScheme === "dark";
const routes = useRouteItems(); const routes = useRouteItems();

@ -1,4 +1,10 @@
import { ActionIcon, Badge, Button, createTheme, MantineProvider } from "@mantine/core"; import {
ActionIcon,
Badge,
Button,
createTheme,
MantineProvider,
} from "@mantine/core";
import { FunctionComponent, PropsWithChildren } from "react"; import { FunctionComponent, PropsWithChildren } from "react";
import ThemeLoader from "@/App/ThemeLoader"; import ThemeLoader from "@/App/ThemeLoader";
import "@mantine/core/styles.layer.css"; import "@mantine/core/styles.layer.css";

Loading…
Cancel
Save