fix: use resolvedTheme to fallback to system theme (#228)

This commit is contained in:
Henry
2025-10-25 21:43:50 +01:00
committed by GitHub
parent 86638026df
commit 0afaa5c159
4 changed files with 8 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ import Link from "next/link";
import { useRouter } from "next/navigation";
import { Menu, Transition } from "@headlessui/react";
import { t } from "@lingui/core/macro";
import { useTheme } from "next-themes";
import { Fragment } from "react";
import { twMerge } from "tailwind-merge";
@@ -10,7 +11,6 @@ import { authClient } from "@kan/auth/client";
import { useIsMobile } from "~/hooks/useMediaQuery";
import { useModal } from "~/providers/modal";
import { useTheme } from "next-themes";
import { getAvatarUrl } from "~/utils/helpers";
interface UserMenuProps {