From 81ecbbaa67fee38833ca3881d270339deed34a62 Mon Sep 17 00:00:00 2001 From: David <33458145+davidmcpowell@users.noreply.github.com> Date: Tue, 18 Mar 2025 14:15:13 +0000 Subject: [PATCH] Merge pull request #24346 from overleaf/dp-breadcrumbs-flag Remove remaining direct usage of editor-redesign feature flag GitOrigin-RevId: c17e377f7e6f7828a77e9620df6e31d1030a98cf --- .../js/features/source-editor/components/codemirror-editor.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/source-editor/components/codemirror-editor.tsx b/services/web/frontend/js/features/source-editor/components/codemirror-editor.tsx index 6441a0358c..7d0093fa5b 100644 --- a/services/web/frontend/js/features/source-editor/components/codemirror-editor.tsx +++ b/services/web/frontend/js/features/source-editor/components/codemirror-editor.tsx @@ -19,6 +19,7 @@ import { } from './codemirror-context' import MathPreviewTooltip from './math-preview-tooltip' import Breadcrumbs from '@/features/ide-redesign/components/breadcrumbs' +import { useIsNewEditorEnabled } from '@/features/ide-redesign/utils/new-editor-utils' // TODO: remove this when definitely no longer used export * from './codemirror-context' @@ -40,7 +41,7 @@ function CodeMirrorEditor() { const isMounted = useIsMounted() const newReviewPanel = useFeatureFlag('review-panel-redesign') - const newEditor = useFeatureFlag('editor-redesign') + const newEditor = useIsNewEditorEnabled() // create the view using the initial state and intercept transactions const viewRef = useRef(null)