Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3405839
D9566.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D9566.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 4, 11:14 PM (12 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2615100
Default Alt Text
D9566.diff (3 KB)
Attached To
Mode
D9566: [native] introduce barebones keyserver selection list screen
Attached
Detach File
Event Timeline
Log In to Comment