|
|
@@ -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') || []
|