Remove handle suggestion gate (#8899)

* remove handle suggestion gate

* rm from list of gates
This commit is contained in:
Samuel Newman
2025-08-26 02:13:54 +03:00
committed by GitHub
parent f3905c574b
commit e8cd7ab131
2 changed files with 1 additions and 6 deletions
-1
View File
@@ -5,7 +5,6 @@ export type Gate =
| 'debug_subscriptions' | 'debug_subscriptions'
| 'disable_onboarding_policy_update_notice' | 'disable_onboarding_policy_update_notice'
| 'explore_show_suggested_feeds' | 'explore_show_suggested_feeds'
| 'handle_suggestions'
| 'old_postonboarding' | 'old_postonboarding'
| 'onboarding_add_video_feed' | 'onboarding_add_video_feed'
| 'post_follow_profile_suggested_accounts' | 'post_follow_profile_suggested_accounts'
+1 -5
View File
@@ -9,7 +9,6 @@ import Animated, {
import {msg, Plural, Trans} from '@lingui/macro' import {msg, Plural, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react' import {useLingui} from '@lingui/react'
import {useGate} from '#/lib/statsig/statsig'
import { import {
createFullHandle, createFullHandle,
MAX_SERVICE_HANDLE_LENGTH, MAX_SERVICE_HANDLE_LENGTH,
@@ -28,14 +27,12 @@ import {useThrottledValue} from '#/components/hooks/useThrottledValue'
import {At_Stroke2_Corner0_Rounded as AtIcon} from '#/components/icons/At' import {At_Stroke2_Corner0_Rounded as AtIcon} from '#/components/icons/At'
import {Check_Stroke2_Corner0_Rounded as CheckIcon} from '#/components/icons/Check' import {Check_Stroke2_Corner0_Rounded as CheckIcon} from '#/components/icons/Check'
import {Text} from '#/components/Typography' import {Text} from '#/components/Typography'
import {IS_INTERNAL} from '#/env'
import {BackNextButtons} from '../BackNextButtons' import {BackNextButtons} from '../BackNextButtons'
import {HandleSuggestions} from './HandleSuggestions' import {HandleSuggestions} from './HandleSuggestions'
export function StepHandle() { export function StepHandle() {
const {_} = useLingui() const {_} = useLingui()
const t = useTheme() const t = useTheme()
const gate = useGate()
const {state, dispatch} = useSignupContext() const {state, dispatch} = useSignupContext()
const [draftValue, setDraftValue] = useState(state.handle) const [draftValue, setDraftValue] = useState(state.handle)
const isNextLoading = useThrottledValue(state.isLoading, 500) const isNextLoading = useThrottledValue(state.isLoading, 500)
@@ -193,8 +190,7 @@ export function StepHandle() {
</RequirementText> </RequirementText>
</Requirement> </Requirement>
{isHandleAvailable.suggestions && {isHandleAvailable.suggestions &&
isHandleAvailable.suggestions.length > 0 && isHandleAvailable.suggestions.length > 0 && (
(gate('handle_suggestions') || IS_INTERNAL) && (
<HandleSuggestions <HandleSuggestions
suggestions={isHandleAvailable.suggestions} suggestions={isHandleAvailable.suggestions}
onSelect={suggestion => { onSelect={suggestion => {