aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/screens/onboarding/Login.tsx25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/screens/onboarding/Login.tsx b/src/screens/onboarding/Login.tsx
index 26b45315..8f19ec3d 100644
--- a/src/screens/onboarding/Login.tsx
+++ b/src/screens/onboarding/Login.tsx
@@ -1,22 +1,23 @@
-import AsyncStorage from '@react-native-community/async-storage';
+import React, {useRef, useState} from 'react';
import {RouteProp} from '@react-navigation/native';
import {StackNavigationProp} from '@react-navigation/stack';
-import React, {useRef, useState} from 'react';
import {
+ View,
+ Text,
Alert,
+ StatusBar,
Image,
+ TouchableOpacity,
+ StyleSheet,
KeyboardAvoidingView,
Platform,
- StatusBar,
- StyleSheet,
- Text,
- TouchableOpacity,
- View,
} from 'react-native';
-import {Background, SubmitButton, TaggInput} from '../../components';
-import {LOGIN_ENDPOINT, usernameRegex} from '../../constants';
-import {AuthContext} from '../../routes/authentication';
+
import {OnboardingStackParams} from '../../routes/onboarding';
+import {AuthContext} from '../../routes/authentication';
+import {Background, TaggInput, SubmitButton} from '../../components';
+import {usernameRegex, LOGIN_ENDPOINT} from '../../constants';
+import AsyncStorage from '@react-native-community/async-storage';
import {UserType} from '../../types';
type VerificationScreenRouteProp = RouteProp<OnboardingStackParams, 'Login'>;
@@ -57,7 +58,6 @@ const Login: React.FC<LoginProps> = ({navigation}: LoginProps) => {
* Updates the state of username. Also verifies the input of the username field by ensuring proper length and appropriate characters.
*/
const handleUsernameUpdate = (val: string) => {
-
val = val.trim();
let validLength: boolean = val.length >= 3;
let validChars: boolean = usernameRegex.test(val);
@@ -275,7 +275,8 @@ const Login: React.FC<LoginProps> = ({navigation}: LoginProps) => {
attemptedSubmit={form.attemptedSubmit}
ref={inputRef}
/>
- <ForgotPassword />
+ {/* Commenting this line because the Forgot Password has not been implemented for Alpha */}
+ {/* <ForgotPassword /> */}
<LoginButton />
</KeyboardAvoidingView>
<RegistrationPrompt />