Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3352500
D8089.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
D8089.diff
View Options
diff --git a/native/account/registration/avatar-selection.react.js b/native/account/registration/avatar-selection.react.js
--- a/native/account/registration/avatar-selection.react.js
+++ b/native/account/registration/avatar-selection.react.js
@@ -26,7 +26,7 @@
+userSelections: {
+coolOrNerdMode: CoolOrNerdMode,
+keyserverUsername: string,
- +accountSelections: AccountSelection,
+ +accountSelection: AccountSelection,
},
};
@@ -42,19 +42,19 @@
};
function AvatarSelection(props: Props): React.Node {
const { userSelections } = props.route.params;
- const { accountSelections } = userSelections;
+ const { accountSelection } = userSelections;
const username =
- accountSelections.accountType === 'username'
- ? accountSelections.username
- : accountSelections.address;
+ accountSelection.accountType === 'username'
+ ? accountSelection.username
+ : accountSelection.address;
const editUserAvatarContext = React.useContext(EditUserAvatarContext);
invariant(editUserAvatarContext, 'editUserAvatarContext should be set');
const { setRegistrationMode } = editUserAvatarContext;
const prefetchedAvatarURI =
- accountSelections.accountType === 'ethereum'
- ? accountSelections.avatarURI
+ accountSelection.accountType === 'ethereum'
+ ? accountSelection.avatarURI
: undefined;
const [avatarData, setAvatarData] = React.useState<?AvatarData>(
diff --git a/native/account/registration/connect-ethereum.react.js b/native/account/registration/connect-ethereum.react.js
--- a/native/account/registration/connect-ethereum.react.js
+++ b/native/account/registration/connect-ethereum.react.js
@@ -159,7 +159,7 @@
const newUserSelections = {
...userSelections,
- accountSelections: {
+ accountSelection: {
accountType: 'ethereum',
...result,
avatarURI,
diff --git a/native/account/registration/password-selection.react.js b/native/account/registration/password-selection.react.js
--- a/native/account/registration/password-selection.react.js
+++ b/native/account/registration/password-selection.react.js
@@ -70,7 +70,7 @@
const newUserSelections = {
coolOrNerdMode,
keyserverUsername,
- accountSelections: {
+ accountSelection: {
accountType: 'username',
username,
password,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 6:10 AM (20 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2574242
Default Alt Text
D8089.diff (2 KB)
Attached To
Mode
D8089: [native] Rename accountSelections to accountSelection
Attached
Detach File
Event Timeline
Log In to Comment