mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #23281 from overleaf/jdt-opp-prompts-teardown
Opportunistic prompts teardown GitOrigin-RevId: ccca9b043dce9abc5719371c3adcdf41ec6510c3
This commit is contained in:
committed by
Copybot
parent
98b5bf2694
commit
7f7c2408c8
@@ -1,13 +1,7 @@
|
||||
import { lazy, memo, Suspense, ElementType } from 'react'
|
||||
import { lazy, memo, Suspense } from 'react'
|
||||
import { FullSizeLoadingSpinner } from '../../../shared/components/loading-spinner'
|
||||
import withErrorBoundary from '../../../infrastructure/error-boundary'
|
||||
import { ErrorBoundaryFallback } from '../../../shared/components/error-boundary-fallback'
|
||||
import importOverleafModules from '../../../../macros/import-overleaf-module.macro'
|
||||
|
||||
const editorPromotions = importOverleafModules('editorPromotions') as {
|
||||
import: { default: ElementType }
|
||||
path: string
|
||||
}[]
|
||||
|
||||
const CodeMirrorEditor = lazy(
|
||||
() =>
|
||||
@@ -17,9 +11,6 @@ const CodeMirrorEditor = lazy(
|
||||
function SourceEditor() {
|
||||
return (
|
||||
<Suspense fallback={<FullSizeLoadingSpinner delay={500} />}>
|
||||
{editorPromotions.map(({ import: { default: Component }, path }) => (
|
||||
<Component key={path} />
|
||||
))}
|
||||
<CodeMirrorEditor />
|
||||
</Suspense>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user