Merge pull request #27005 from overleaf/mj-editor-redesign-feature-flag

[web] Allow editor redesign to be loaded through feature flag

GitOrigin-RevId: b600b0d42c7a052fde19be3eee46c9e11cc3bac1
This commit is contained in:
Mathias Jakobsen
2025-07-10 09:42:32 +01:00
committed by Copybot
parent 4ab4fbdf51
commit 9e6ca01e7f
@@ -1,7 +1,9 @@
import { useUserSettingsContext } from '@/shared/context/user-settings-context'
import { isInExperiment } from '@/utils/labs-utils'
import { isSplitTestEnabled } from '@/utils/splitTestUtils'
export const canUseNewEditor = () => isInExperiment('editor-redesign')
export const canUseNewEditor = () =>
isInExperiment('editor-redesign') || isSplitTestEnabled('editor-redesign')
export const useIsNewEditorEnabled = () => {
const { userSettings } = useUserSettingsContext()