Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32164238
D8764.1765047466.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D8764.1765047466.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
@@ -80,6 +80,7 @@
export const ImagePasteModalRouteName = 'ImagePasteModal';
export const InviteLinkModalRouteName = 'InviteLinkModal';
export const InviteLinkNavigatorRouteName = 'InviteLinkNavigator';
+export const LinkedDevicesRouteName = 'LinkedDevices';
export const LoggedOutModalRouteName = 'LoggedOutModal';
export const ManagePublicLinkRouteName = 'ManagePublicLink';
export const MessageListRouteName = 'MessageList';
@@ -215,6 +216,7 @@
+DefaultNotifications: void,
+FriendList: void,
+BlockList: void,
+ +LinkedDevices: void,
};
export type CommunityDrawerParamList = { +TabNavigator: void };
diff --git a/native/profile/linked-devices.react.js b/native/profile/linked-devices.react.js
new file mode 100644
--- /dev/null
+++ b/native/profile/linked-devices.react.js
@@ -0,0 +1,9 @@
+// @flow
+import * as React from 'react';
+
+// eslint-disable-next-line no-unused-vars
+function LinkedDevices(props: { ... }): React.Node {
+ return null;
+}
+
+export default LinkedDevices;
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
@@ -35,6 +35,7 @@
BlockListRouteName,
PrivacyPreferencesRouteName,
DefaultNotificationsPreferencesRouteName,
+ LinkedDevicesRouteName,
} from '../navigation/route-names.js';
import { useSelector } from '../redux/redux-utils.js';
import { type Colors, useColors, useStyles } from '../themes/colors.js';
@@ -120,6 +121,13 @@
);
}
+ let linkedDevices;
+ if (__DEV__) {
+ linkedDevices = (
+ <ProfileRow content="Linked devices" onPress={this.onPressDevices} />
+ );
+ }
+
return (
<View style={this.props.styles.container}>
<ScrollView
@@ -164,6 +172,7 @@
{defaultNotifications}
</View>
<View style={this.props.styles.section}>
+ {linkedDevices}
<ProfileRow content="Build info" onPress={this.onPressBuildInfo} />
{developerTools}
</View>
@@ -261,6 +270,10 @@
this.navigateIfActive(DeleteAccountRouteName);
};
+ onPressDevices = () => {
+ this.navigateIfActive(LinkedDevicesRouteName);
+ };
+
onPressBuildInfo = () => {
this.navigateIfActive(BuildInfoRouteName);
};
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
@@ -16,6 +16,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 LinkedDevices from './linked-devices.react.js';
import PrivacyPreferences from './privacy-preferences.react.js';
import ProfileHeader from './profile-header.react.js';
import ProfileScreen from './profile-screen.react.js';
@@ -36,6 +37,7 @@
FriendListRouteName,
DefaultNotificationsPreferencesRouteName,
BlockListRouteName,
+ LinkedDevicesRouteName,
type ScreenParamList,
type ProfileParamList,
} from '../navigation/route-names.js';
@@ -49,6 +51,7 @@
};
const editPasswordOptions = { headerTitle: 'Change password' };
const deleteAccountOptions = { headerTitle: 'Delete account' };
+const linkedDevicesOptions = { headerTitle: 'Linked devices' };
const buildInfoOptions = { headerTitle: 'Build info' };
const devToolsOptions = { headerTitle: 'Developer tools' };
const appearanceOptions = { headerTitle: 'Appearance' };
@@ -129,6 +132,11 @@
component={DeleteAccount}
options={deleteAccountOptions}
/>
+ <Profile.Screen
+ name={LinkedDevicesRouteName}
+ component={LinkedDevices}
+ options={linkedDevicesOptions}
+ />
<Profile.Screen
name={BuildInfoRouteName}
component={BuildInfo}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 6:57 PM (19 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5840273
Default Alt Text
D8764.1765047466.diff (3 KB)
Attached To
Mode
D8764: [native] Add a 'linked devices' section on the app for primary devices
Attached
Detach File
Event Timeline
Log In to Comment