mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 15:19:02 +02:00
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:
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()
|
||||
|
||||
Reference in New Issue
Block a user