mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #31938 from overleaf/mj-loading-pane-light-in-system
[web] Fix bright loading pane in system theme GitOrigin-RevId: 280044f7accc453187d1edd55f9baff1d9aa4280
This commit is contained in:
committed by
Copybot
parent
8c7fe88c8c
commit
7a59db5f9e
@@ -1,11 +1,11 @@
|
||||
import { FC, useMemo } from 'react'
|
||||
import LoadingSpinner from '@/shared/components/loading-spinner'
|
||||
import { useProjectSettingsContext } from '@/features/editor-left-menu/context/project-settings-context'
|
||||
import getMeta from '@/utils/meta'
|
||||
import classNames from 'classnames'
|
||||
import { useActiveEditorTheme } from '@/shared/hooks/use-active-editor-theme'
|
||||
|
||||
export const EditorLoadingPane: FC = () => {
|
||||
const { editorTheme } = useProjectSettingsContext()
|
||||
const editorTheme = useActiveEditorTheme()
|
||||
const isDark = useMemo(() => {
|
||||
const themes = getMeta('ol-editorThemes') || []
|
||||
const legacyThemes = getMeta('ol-legacyEditorThemes') || []
|
||||
|
||||
Reference in New Issue
Block a user