Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3178944
D10009.id33653.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D10009.id33653.diff
View Options
diff --git a/native/profile/profile-screen.react.js b/native/profile/profile-screen.react.js
--- a/native/profile/profile-screen.react.js
+++ b/native/profile/profile-screen.react.js
@@ -370,60 +370,58 @@
await deleteNativeCredentialsFor();
}
- navigateIfActive(name) {
- this.props.navigation.navigate({ name });
- }
-
onPressEditPassword = () => {
- this.navigateIfActive(EditPasswordRouteName);
+ this.props.navigation.navigate({ name: EditPasswordRouteName });
};
onPressDeleteAccount = () => {
- this.navigateIfActive(DeleteAccountRouteName);
+ this.props.navigation.navigate({ name: DeleteAccountRouteName });
};
onPressDevices = () => {
- this.navigateIfActive(LinkedDevicesRouteName);
+ this.props.navigation.navigate({ name: LinkedDevicesRouteName });
};
onPressBuildInfo = () => {
- this.navigateIfActive(BuildInfoRouteName);
+ this.props.navigation.navigate({ name: BuildInfoRouteName });
};
onPressDevTools = () => {
- this.navigateIfActive(DevToolsRouteName);
+ this.props.navigation.navigate({ name: DevToolsRouteName });
};
onPressAppearance = () => {
- this.navigateIfActive(AppearancePreferencesRouteName);
+ this.props.navigation.navigate({ name: AppearancePreferencesRouteName });
};
onPressPrivacy = () => {
- this.navigateIfActive(PrivacyPreferencesRouteName);
+ this.props.navigation.navigate({ name: PrivacyPreferencesRouteName });
};
onPressDefaultNotifications = () => {
- this.navigateIfActive(DefaultNotificationsPreferencesRouteName);
+ this.props.navigation.navigate({
+ name: DefaultNotificationsPreferencesRouteName,
+ });
};
onPressFriendList = () => {
- this.navigateIfActive(FriendListRouteName);
+ this.props.navigation.navigate({ name: FriendListRouteName });
};
onPressBlockList = () => {
- this.navigateIfActive(BlockListRouteName);
+ this.props.navigation.navigate({ name: BlockListRouteName });
};
onPressBackupMenu = () => {
- this.navigateIfActive(BackupMenuRouteName);
+ this.props.navigation.navigate({ name: BackupMenuRouteName });
};
onPressTunnelbrokerMenu = () => {
- this.navigateIfActive(TunnelbrokerMenuRouteName);
+ this.props.navigation.navigate({ name: TunnelbrokerMenuRouteName });
};
onPressKeyserverSelection = () => {
- this.navigateIfActive(KeyserverSelectionListRouteName);
+ this.props.navigation.navigate({ name: KeyserverSelectionListRouteName });
};
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 9, 2:48 AM (19 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2447088
Default Alt Text
D10009.id33653.diff (2 KB)
Attached To
Mode
D10009: [Flow202][native][skip-ci] [25/x] Get rid of ProfileScreen.navigateIfActive
Attached
Detach File
Event Timeline
Log In to Comment