rename sync to find
FCF (Find Contacts Flow)
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ import {VerifyNumber} from './screens/VerifyNumber'
|
||||
import {ViewMatches} from './screens/ViewMatches'
|
||||
import {type Action, type State} from './state'
|
||||
|
||||
export function SyncContactsFlow({
|
||||
export function FindContactsFlow({
|
||||
state,
|
||||
dispatch,
|
||||
onCancel,
|
||||
@@ -0,0 +1,3 @@
|
||||
export function FindContactsFlow() {
|
||||
throw new Error('FindContactsFlow is not available on web')
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
export function SyncContactsFlow() {
|
||||
throw new Error('SyncContactsFlow is not available on web')
|
||||
}
|
||||
@@ -363,7 +363,7 @@ function MatchItem({
|
||||
<ProfileCard.FollowButton
|
||||
profile={profile}
|
||||
moderationOpts={moderationOpts}
|
||||
logContext="SyncContacts"
|
||||
logContext="FindContacts"
|
||||
/>
|
||||
{!shadow.viewer?.following && (
|
||||
<Button
|
||||
|
||||
@@ -171,7 +171,7 @@ function assertCurrentStep<S extends State['step']>(
|
||||
}
|
||||
}
|
||||
|
||||
export function useSyncContactsFlowState(
|
||||
export function useFindContactsFlowState(
|
||||
initialState: State = {step: '1: phone input'},
|
||||
) {
|
||||
return useReducer(reducer, initialState)
|
||||
|
||||
Reference in New Issue
Block a user