From 2683938e0e194a129e1a24cfe9ccbd8af4390a01 Mon Sep 17 00:00:00 2001 From: Tanmay Bhatia <38436012+tbhatia2299@users.noreply.github.com> Date: Fri, 6 Nov 2020 10:42:02 -0800 Subject: 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 --- src/screens/onboarding/Login.tsx | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src') 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; @@ -57,7 +58,6 @@ const Login: React.FC = ({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 = ({navigation}: LoginProps) => { attemptedSubmit={form.attemptedSubmit} ref={inputRef} /> - + {/* Commenting this line because the Forgot Password has not been implemented for Alpha */} + {/* */} -- cgit v1.2.3-70-g09d2