gate onboarding by geo if unsupported country

This commit is contained in:
Samuel Newman
2025-12-08 15:55:11 +02:00
parent 663656a090
commit 1c9449edde
+5 -1
View File
@@ -20,6 +20,7 @@ import {StepFinished} from '#/screens/Onboarding/StepFinished'
import {StepInterests} from '#/screens/Onboarding/StepInterests'
import {StepProfile} from '#/screens/Onboarding/StepProfile'
import {atoms as a, useTheme} from '#/alf'
import {useIsFindContactsFeatureEnabledBasedOnGeolocation} from '#/components/contacts/country-whitelist'
import {useFindContactsFlowState} from '#/components/contacts/state'
import {Portal} from '#/components/Portal'
import {ScreenTransition} from '#/components/ScreenTransition'
@@ -45,7 +46,10 @@ export function Onboarding() {
probablySpeaksEnglish &&
gate('onboarding_suggested_starterpacks')
const showFindContacts = isNative && !gate('disable_onboarding_find_contacts')
const findContactsEnabled =
useIsFindContactsFeatureEnabledBasedOnGeolocation()
const showFindContacts =
isNative && findContactsEnabled && !gate('disable_onboarding_find_contacts')
const [state, dispatch] = useReducer(
reducer,