mirror of https://github.com/morpheus65535/bazarr
fix styles
This commit is contained in:
parent
4d27f7819c
commit
5e0d9eac44
|
@ -20,6 +20,7 @@ import {
|
|||
Group,
|
||||
Stack,
|
||||
Text,
|
||||
useComputedColorScheme,
|
||||
useMantineColorScheme,
|
||||
} from "@mantine/core";
|
||||
import { useHover } from "@mantine/hooks";
|
||||
|
@ -98,8 +99,10 @@ function useIsActive(parent: string, route: RouteObject) {
|
|||
const AppNavbar: FunctionComponent = () => {
|
||||
const [selection, select] = useState<string | null>(null);
|
||||
|
||||
const { colorScheme, toggleColorScheme } = useMantineColorScheme();
|
||||
const dark = colorScheme === "dark";
|
||||
const { toggleColorScheme } = useMantineColorScheme();
|
||||
const computedColorScheme = useComputedColorScheme("light");
|
||||
|
||||
const dark = computedColorScheme === "dark";
|
||||
|
||||
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 ThemeLoader from "@/App/ThemeLoader";
|
||||
import "@mantine/core/styles.layer.css";
|
||||
|
|
Loading…
Reference in New Issue