aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTanmay Bhatia <38436012+tbhatia2299@users.noreply.github.com>2020-11-06 10:42:02 -0800
committerGitHub <noreply@github.com>2020-11-06 13:42:02 -0500
commit2683938e0e194a129e1a24cfe9ccbd8af4390a01 (patch)
tree22a9c6adb18b9997b1d7dede6a41df5c31141c0b /src
parentf7f2ee89e180b1d64f4e41ec61498508ea27ac25 (diff)
Removed Forgot Password for Alpha (#111)
* Removed Forgot Password for Alpha * Made the required changes by adding lines * Made the required changes by adding lines = * Made the required changes * Small change Co-authored-by: Ashm Walia <ashmwalia@outlook.com>
Diffstat (limited to 'src')
-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 />