mirror of
https://github.com/massbug/judge4c.git
synced 2026-10-15 15:17:31 +00:00
fix(useMonacoTheme): return theme ID instead of the full theme object
This commit is contained in:
@@ -5,7 +5,7 @@ import { MonacoThemeConfig } from "@/config/monaco-theme";
|
||||
export function useMonacoTheme() {
|
||||
const { resolvedTheme } = useTheme();
|
||||
|
||||
const currentTheme = resolvedTheme === "light" ? MonacoThemeConfig[MonacoTheme.GitHubLightDefault] : MonacoThemeConfig[MonacoTheme.GitHubDarkDefault];
|
||||
const currentTheme = resolvedTheme === "light" ? MonacoThemeConfig[MonacoTheme.GitHubLightDefault].id : MonacoThemeConfig[MonacoTheme.GitHubDarkDefault].id;
|
||||
|
||||
return {
|
||||
currentTheme,
|
||||
|
||||
Reference in New Issue
Block a user