|
|
@ -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();
|
|
|
|
|
|
|
|
|
|
|
|