Page MenuHomePhabricator

D9566.id32330.diff
No OneTemporary

D9566.id32330.diff

diff --git a/native/navigation/route-names.js b/native/navigation/route-names.js
--- a/native/navigation/route-names.js
+++ b/native/navigation/route-names.js
@@ -139,6 +139,7 @@
'UserProfileBottomSheetNavigator';
export const UserProfileBottomSheetRouteName = 'UserProfileBottomSheet';
export const UserProfileAvatarModalRouteName = 'UserProfileAvatarModal';
+export const KeyserverSelectionListRouteName = 'KeyserverSelectionList';
export type RootParamList = {
+LoggedOutModal: void,
@@ -232,6 +233,7 @@
+LinkedDevices: void,
+SecondaryDeviceQRCodeScanner: void,
+BackupMenu: void,
+ +KeyserverSelectionList: void,
};
export type CommunityDrawerParamList = { +TabNavigator: void };
diff --git a/native/profile/keyserver-selection-list.react.js b/native/profile/keyserver-selection-list.react.js
new file mode 100644
--- /dev/null
+++ b/native/profile/keyserver-selection-list.react.js
@@ -0,0 +1,10 @@
+// @flow
+
+import * as React from 'react';
+
+// eslint-disable-next-line no-unused-vars
+function KeyserverSelectionList(props: { ... }): React.Node {
+ return null;
+}
+
+export default KeyserverSelectionList;
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
@@ -37,6 +37,7 @@
DefaultNotificationsPreferencesRouteName,
LinkedDevicesRouteName,
BackupMenuRouteName,
+ KeyserverSelectionListRouteName,
} from '../navigation/route-names.js';
import { useSelector } from '../redux/redux-utils.js';
import { type Colors, useColors, useStyles } from '../themes/colors.js';
@@ -324,7 +325,7 @@
};
onPressKeyserverSelection = () => {
- // TODO
+ this.navigateIfActive(KeyserverSelectionListRouteName);
};
}
diff --git a/native/profile/profile.react.js b/native/profile/profile.react.js
--- a/native/profile/profile.react.js
+++ b/native/profile/profile.react.js
@@ -17,6 +17,7 @@
import DevTools from './dev-tools.react.js';
import EditPassword from './edit-password.react.js';
import EmojiUserAvatarCreation from './emoji-user-avatar-creation.react.js';
+import KeyserverSelectionList from './keyserver-selection-list.react.js';
import LinkedDevicesHeaderRightButton from './linked-devices-header-right-button.react.js';
import LinkedDevices from './linked-devices.react.js';
import PrivacyPreferences from './privacy-preferences.react.js';
@@ -43,6 +44,7 @@
LinkedDevicesRouteName,
SecondaryDeviceQRCodeScannerRouteName,
BackupMenuRouteName,
+ KeyserverSelectionListRouteName,
type ScreenParamList,
type ProfileParamList,
} from '../navigation/route-names.js';
@@ -61,6 +63,7 @@
// eslint-disable-next-line react/display-name
headerRight: () => <LinkedDevicesHeaderRightButton />,
};
+const keyserverSelectionListOptions = { headerTitle: 'Keyserver selection' };
const backupMenuOptions = { headerTitle: 'Backup menu' };
const secondaryDeviceQRCodeScannerOptions = {
headerTitle: '',
@@ -151,6 +154,11 @@
component={LinkedDevices}
options={linkedDevicesOptions}
/>
+ <Profile.Screen
+ name={KeyserverSelectionListRouteName}
+ component={KeyserverSelectionList}
+ options={keyserverSelectionListOptions}
+ />
<Profile.Screen
name={BackupMenuRouteName}
component={BackupMenu}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 5, 10:12 AM (16 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2615100
Default Alt Text
D9566.id32330.diff (3 KB)

Event Timeline