diff options
author | Leon Jiang <35908040+leonyjiang@users.noreply.github.com> | 2020-07-20 16:27:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 19:27:45 -0400 |
commit | e87d4f2b10cff8cf5f31784cfddb22727a94f373 (patch) | |
tree | dd454883f3f4054e895c7ce80f2845d68ba31364 /src/screens/onboarding/Registration.tsx | |
parent | c38291fb50e30af0739f17de42f3b8bb51cca73e (diff) |
[TMA-134] Profile Picture Upload (#22)
* Fix styling, remove unnecessary state
* Change large profile to square crop, restyle
* Disable gestures on Verification and Profile screens
* Forward username and ID to Profile screen
* Add API request upon submit & filler components
* Restore gestures to Verification and Profile
* Rewrite network failure error message
* Update profile request form keys
Diffstat (limited to 'src/screens/onboarding/Registration.tsx')
-rw-r--r-- | src/screens/onboarding/Registration.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screens/onboarding/Registration.tsx b/src/screens/onboarding/Registration.tsx index 8d564cd0..6cad92a5 100644 --- a/src/screens/onboarding/Registration.tsx +++ b/src/screens/onboarding/Registration.tsx @@ -227,9 +227,11 @@ const Registration: React.FC<RegistrationProps> = ({navigation}) => { ); let otpStatusCode = sendOtpResponse.status; if (otpStatusCode === 200) { + const userId: string = data.UserID; navigation.navigate('Verification', { username: form.username, email: form.email, + userId: userId, }); } } else if (statusCode === 409) { @@ -252,8 +254,8 @@ const Registration: React.FC<RegistrationProps> = ({navigation}) => { } } catch (error) { Alert.alert( - 'Looks like our servers are down. 😓', - "Try again in a couple minutes. We're sorry for the inconvenience.", + 'Registration failed 😓', + 'Please double-check your network connection and retry.', ); return { name: 'Registration error', |