aboutsummaryrefslogtreecommitdiff
path: root/src/components/common
diff options
context:
space:
mode:
authorJustin Shillingford <jgs272@cornell.edu>2020-06-29 16:25:14 -0400
committerJustin Shillingford <jgs272@cornell.edu>2020-06-29 16:25:14 -0400
commit94f966fb947262405130488cbe84cabfc2989fb2 (patch)
tree880591f4573b0d6240eb6ec662ae62068fce3fc0 /src/components/common
parent5c26e9b92b0fcdd34905719547a9c1d67742dc7f (diff)
Removed TextInput focus code for now
Also miscellaneous code cleanup
Diffstat (limited to 'src/components/common')
-rw-r--r--src/components/common/LoginInput.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/common/LoginInput.tsx b/src/components/common/LoginInput.tsx
index ca33db92..55d2e662 100644
--- a/src/components/common/LoginInput.tsx
+++ b/src/components/common/LoginInput.tsx
@@ -26,7 +26,7 @@ const LoginInput = (props: LoginInputProps) => {
blurOnSubmit={props.isUsername ? false : undefined}
// ref={props.isUsername ? undefined : useRef()}
secureTextEntry={props.isUsername ? false : true}
- focus={props.isUsername ? undefined : props.focusPasswordInput}
+ // focus={props.isUsername ? undefined : props.focusPasswordInput}
/>
);
};
@@ -51,7 +51,7 @@ LoginInput.propTypes = {
isUsername: PropTypes.bool.isRequired,
onChangeText: PropTypes.func.isRequired,
onSubmitEditing: PropTypes.func,
- ref: PropTypes.any,
+// ref: PropTypes.any,
focusPasswordInput: PropTypes.bool,
};