mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 06:09:02 +02:00
Merge pull request #30393 from overleaf/dp-test-revert-2
Revert "Merge pull request #29916 from overleaf/dp-cleanup-editor-red… GitOrigin-RevId: c2f14fb55e74a1fcb026e37822774724c36bc0dc
This commit is contained in:
@@ -2,15 +2,27 @@ import { memo } from 'react'
|
||||
import ForceDisconnected from '@/features/ide-react/components/modals/force-disconnected'
|
||||
import { UnsavedDocs } from '@/features/ide-react/components/unsaved-docs/unsaved-docs'
|
||||
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 />
|
||||
<NewEditorOptOutIntroModal />
|
||||
{isNewEditorOptOutStage ? (
|
||||
<NewEditorOptOutIntroModal />
|
||||
) : (
|
||||
<>
|
||||
<NewEditorPromoModal />
|
||||
<NewEditorIntroModal />
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user