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