mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #29821 from overleaf/dp-editor-redesign-opt-out
Prepare editor redesign for opt-out phase GitOrigin-RevId: 5831970ff27e5c20f22c68b83471b6b832c2b2b4
This commit is contained in:
@@ -4,15 +4,25 @@ import { UnsavedDocs } from '@/features/ide-react/components/unsaved-docs/unsave
|
||||
import SystemMessages from '@/shared/components/system-messages'
|
||||
import NewEditorPromoModal from '@/features/ide-redesign/components/new-editor-promo-modal'
|
||||
import NewEditorIntroModal from '@/features/ide-redesign/components/new-editor-intro-modal'
|
||||
import NewEditorOptOutIntroModal from '@/features/ide-redesign/components/new-editor-opt-out-intro-modal'
|
||||
import { useFeatureFlag } from '@/shared/context/split-test-context'
|
||||
|
||||
export const Modals = memo(() => {
|
||||
const isNewEditorOptOutStage = useFeatureFlag('editor-redesign-opt-out')
|
||||
|
||||
return (
|
||||
<>
|
||||
<ForceDisconnected />
|
||||
<UnsavedDocs />
|
||||
<SystemMessages />
|
||||
<NewEditorPromoModal />
|
||||
<NewEditorIntroModal />
|
||||
{isNewEditorOptOutStage ? (
|
||||
<NewEditorOptOutIntroModal />
|
||||
) : (
|
||||
<>
|
||||
<NewEditorPromoModal />
|
||||
<NewEditorIntroModal />
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user