This commit is contained in:
Samuel Newman
2025-08-06 21:27:18 +03:00
parent 2917baa12e
commit 0f11376751
4 changed files with 56 additions and 52 deletions
+1
View File
@@ -4,6 +4,7 @@ export type Gate =
| 'debug_show_feedcontext'
| 'debug_subscriptions'
| 'explore_show_suggested_feeds'
| 'handle_suggestions'
| 'old_postonboarding'
| 'onboarding_add_video_feed'
| 'post_threads_v2_unspecced'
+4 -1
View File
@@ -12,6 +12,7 @@ import {type ComAtprotoTempCheckHandleAvailability} from '@atproto/api'
import {msg, Plural, Trans} from '@lingui/macro'
import {useLingui} from '@lingui/react'
import {useGate} from '#/lib/statsig/statsig'
import {
createFullHandle,
MAX_SERVICE_HANDLE_LENGTH,
@@ -37,6 +38,7 @@ import {BackNextButtons} from './BackNextButtons'
export function StepHandle() {
const {_} = useLingui()
const t = useTheme()
const gate = useGate()
const {state, dispatch} = useSignupContext()
const [draftValue, setDraftValue] = useState(state.handle)
const isNextLoading = useThrottledValue(state.isLoading, 500)
@@ -189,7 +191,8 @@ export function StepHandle() {
</RequirementText>
</Requirement>
{isHandleAvailable.suggestions &&
isHandleAvailable.suggestions.length > 0 && (
isHandleAvailable.suggestions.length > 0 &&
gate('handle_suggestions') && (
<HandleSuggestions
suggestions={isHandleAvailable.suggestions}
onSelect={suggestion => {