aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
authorJustin Shillingford <jgs272@cornell.edu>2020-06-29 18:56:48 -0400
committerJustin Shillingford <jgs272@cornell.edu>2020-06-29 18:56:48 -0400
commit8f478fa2e1d4d2b1361a575bd80a928038741ee9 (patch)
treeab090f185d22ddb8356056c02b0ff953f2f43a1b /src/screens
parent94f966fb947262405130488cbe84cabfc2989fb2 (diff)
Added isPassword prop to LoginInput.tsx
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/Login.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/screens/Login.tsx b/src/screens/Login.tsx
index e7778f1d..f7445018 100644
--- a/src/screens/Login.tsx
+++ b/src/screens/Login.tsx
@@ -37,7 +37,7 @@ const Login = ({navigation}: LoginProps) => {
Updates the state of username. Also verifies the input of the Username field.
*/
const handleUsernameUpdate = (val: string) => {
- var validLength: boolean = val.trim().length >= 6;
+ let validLength: boolean = val.trim().length >= 6;
if (validLength) {
setData({
@@ -58,7 +58,7 @@ const Login = ({navigation}: LoginProps) => {
Updates the state of password. Also verifies the input of the Password field.
*/
const handlePasswordUpdate = (val: string) => {
- var validLength: boolean = val.trim().length >= 8;
+ let validLength: boolean = val.trim().length >= 8;
if (validLength) {
setData({
@@ -95,7 +95,7 @@ const Login = ({navigation}: LoginProps) => {
// ...data,
// focusPasswordInput: true,
// });
- Alert.alert("Coming soon 🚧")
+ Alert.alert('Coming soon 🚧');
};
return (
@@ -125,7 +125,7 @@ const Login = ({navigation}: LoginProps) => {
)}
<LoginInput
type={data.password}
- isUsername={false}
+ isPassword={true}
onChangeText={(user) => handlePasswordUpdate(user)}
focusPasswordInput={data.focusPasswordInput}
onSubmitEditing={() => handleLogin()}