diff --git a/src/Navigation.tsx b/src/Navigation.tsx index 0b1a6e1c17..91e21579e6 100644 --- a/src/Navigation.tsx +++ b/src/Navigation.tsx @@ -75,6 +75,7 @@ import {BottomBar} from '#/view/shell/bottom-bar/BottomBar' import {createNativeStackNavigatorWithAuth} from '#/view/shell/createNativeStackNavigatorWithAuth' import {BookmarksScreen} from '#/screens/Bookmarks' import {SharedPreferencesTesterScreen} from '#/screens/E2E/SharedPreferencesTesterScreen' +import {FindContactsFlowScreen} from '#/screens/FindContactsFlowScreen' import HashtagScreen from '#/screens/Hashtag' import {LogScreen} from '#/screens/Log' import {MessagesScreen} from '#/screens/Messages/ChatList' @@ -106,6 +107,7 @@ import {AppIconSettingsScreen} from '#/screens/Settings/AppIconSettings' import {AppPasswordsScreen} from '#/screens/Settings/AppPasswords' import {ContentAndMediaSettingsScreen} from '#/screens/Settings/ContentAndMediaSettings' import {ExternalMediaPreferencesScreen} from '#/screens/Settings/ExternalMediaPreferences' +import {FindContactsSettingsScreen} from '#/screens/Settings/FindContactsSettings' import {FollowingFeedPreferencesScreen} from '#/screens/Settings/FollowingFeedPreferences' import {InterestsSettingsScreen} from '#/screens/Settings/InterestsSettings' import {LanguageSettingsScreen} from '#/screens/Settings/LanguageSettings' @@ -123,14 +125,12 @@ import {RepostNotificationSettingsScreen} from '#/screens/Settings/NotificationS import {RepostsOnRepostsNotificationSettingsScreen} from '#/screens/Settings/NotificationSettings/RepostsOnRepostsNotificationSettings' import {PrivacyAndSecuritySettingsScreen} from '#/screens/Settings/PrivacyAndSecuritySettings' import {SettingsScreen} from '#/screens/Settings/Settings' -import {SyncContactsSettingsScreen} from '#/screens/Settings/SyncContactsSettings' import {ThreadPreferencesScreen} from '#/screens/Settings/ThreadPreferences' import { StarterPackScreen, StarterPackScreenShort, } from '#/screens/StarterPack/StarterPackScreen' import {Wizard} from '#/screens/StarterPack/Wizard' -import {SyncContactsFlowScreen} from '#/screens/SyncContactsFlowScreen' import TopicScreen from '#/screens/Topic' import {VideoFeed} from '#/screens/VideoFeed' import {type Theme, useTheme} from '#/alf' @@ -419,10 +419,10 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) { }} /> SyncContactsSettingsScreen} + name="FindContactsSettings" + getComponent={() => FindContactsSettingsScreen} options={{ - title: title(msg`Sync contacts`), + title: title(msg`Find contacts`), requireAuth: true, }} /> @@ -620,10 +620,10 @@ function commonScreens(Stack: typeof Flat, unreadCountLabel?: string) { }} /> SyncContactsFlowScreen} + name="FindContactsFlow" + getComponent={() => FindContactsFlowScreen} options={{ - title: title(msg`Sync Contacts`), + title: title(msg`Find Contacts`), requireAuth: true, gestureEnabled: false, }} diff --git a/src/components/contacts/SyncContactsFlow.tsx b/src/components/contacts/FindContactsFlow.tsx similarity index 97% rename from src/components/contacts/SyncContactsFlow.tsx rename to src/components/contacts/FindContactsFlow.tsx index 044a5843e2..ecacf3f3f1 100644 --- a/src/components/contacts/SyncContactsFlow.tsx +++ b/src/components/contacts/FindContactsFlow.tsx @@ -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, diff --git a/src/components/contacts/FindContactsFlow.web.tsx b/src/components/contacts/FindContactsFlow.web.tsx new file mode 100644 index 0000000000..9def7df16b --- /dev/null +++ b/src/components/contacts/FindContactsFlow.web.tsx @@ -0,0 +1,3 @@ +export function FindContactsFlow() { + throw new Error('FindContactsFlow is not available on web') +} diff --git a/src/components/contacts/SyncContactsFlow.web.tsx b/src/components/contacts/SyncContactsFlow.web.tsx deleted file mode 100644 index d40435f6fa..0000000000 --- a/src/components/contacts/SyncContactsFlow.web.tsx +++ /dev/null @@ -1,3 +0,0 @@ -export function SyncContactsFlow() { - throw new Error('SyncContactsFlow is not available on web') -} diff --git a/src/components/contacts/screens/ViewMatches.tsx b/src/components/contacts/screens/ViewMatches.tsx index 4973c12b43..c56c6e3f1c 100644 --- a/src/components/contacts/screens/ViewMatches.tsx +++ b/src/components/contacts/screens/ViewMatches.tsx @@ -363,7 +363,7 @@ function MatchItem({ {!shadow.viewer?.following && (