Merge pull request #28604 from overleaf/mj-limit-beta-modal

[web] Remove beta modal for new-user-split-test groups

GitOrigin-RevId: d61a3338472608620d199ef3ee7ef028e90f5aa0
This commit is contained in:
David
2025-09-23 08:05:33 +00:00
committed by Copybot
parent da76a61646
commit 3aa85df34a
@@ -10,6 +10,7 @@ import { FC, useCallback, useEffect } from 'react'
import {
canUseNewEditor,
useIsNewEditorEnabled,
useIsNewEditorEnabledViaPrimaryFeatureFlag,
} from '../../utils/new-editor-utils'
import Notification from '@/shared/components/notification'
import { useSwitchEnableNewEditorState } from '../../hooks/use-switch-enable-new-editor-state'
@@ -30,14 +31,15 @@ export const IdeRedesignIntroModal: FC = () => {
name: TUTORIAL_KEY,
}
)
const hasAccess = useIsNewEditorEnabledViaPrimaryFeatureFlag()
useEffect(() => {
if (!hasAccess) return
if (!inactiveTutorials.includes(TUTORIAL_KEY)) {
tryShowingPopup()
}
}, [tryShowingPopup, inactiveTutorials])
}, [tryShowingPopup, inactiveTutorials, hasAccess])
const hasAccess = canUseNewEditor()
if (!hasAccess) {
return null
}