diff --git a/src/lib/statsig/gates.ts b/src/lib/statsig/gates.ts index b8e2e9a3c2..391314162c 100644 --- a/src/lib/statsig/gates.ts +++ b/src/lib/statsig/gates.ts @@ -15,4 +15,3 @@ export type Gate = | 'remove_show_latest_button' | 'test_gate_1' | 'test_gate_2' - | 'welcome_modal' diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx index 268e77eae6..4b8b47acd7 100644 --- a/src/view/shell/index.web.tsx +++ b/src/view/shell/index.web.tsx @@ -8,7 +8,6 @@ import {RemoveScrollBar} from 'react-remove-scroll-bar' import {useIntentHandler} from '#/lib/hooks/useIntentHandler' import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries' import {type NavigationProp} from '#/lib/routes/types' -import {useGate} from '#/lib/statsig/statsig' import {useGeolocationStatus} from '#/state/geolocation' import {useIsDrawerOpen, useSetDrawerOpen} from '#/state/shell' import {useComposerKeyboardShortcut} from '#/state/shell/composer/useComposerKeyboardShortcut' @@ -46,7 +45,6 @@ function ShellInner() { const [showDrawerDelayedExit, setShowDrawerDelayedExit] = useState(showDrawer) const {state: policyUpdateState} = usePolicyUpdateContext() const welcomeModalControl = useWelcomeModal() - const gate = useGate() useLayoutEffect(() => { if (showDrawer !== showDrawerDelayedExit) { @@ -85,8 +83,7 @@ function ShellInner() { - {/* Show welcome modal if the gate is enabled */} - {welcomeModalControl.isOpen && gate('welcome_modal') && ( + {welcomeModalControl.isOpen && ( )}