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

@@ -39,7 +39,7 @@ export default function Dashboard({
rightPanel,
hasRightPanel = false,
}: DashboardProps) {
const { theme } = useTheme();
const { resolvedTheme } = useTheme();
const { openModal } = useModal();
const { availableWorkspaces, hasLoaded } = useWorkspace();
@@ -95,7 +95,7 @@ export default function Dashboard({
}
}, [hasLoaded, availableWorkspaces.length, openModal]);
const isDarkMode = theme === "dark";
const isDarkMode = resolvedTheme === "dark";
return (
<>