From 4bf146fcdb29ba4424d24f63d8809ee830112d68 Mon Sep 17 00:00:00 2001
From: Justin Shillingford <jgs272@cornell.edu>
Date: Mon, 29 Jun 2020 19:47:19 -0400
Subject: Updated, props to use interface

---
 src/components/common/LoginInput.tsx | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

(limited to 'src/components/common/LoginInput.tsx')

diff --git a/src/components/common/LoginInput.tsx b/src/components/common/LoginInput.tsx
index ba519480..fac8a04f 100644
--- a/src/components/common/LoginInput.tsx
+++ b/src/components/common/LoginInput.tsx
@@ -83,16 +83,16 @@ const styles = StyleSheet.create({
   },
 });
 
-LoginInput.propTypes = {
-  type: PropTypes.string.isRequired,
-  isUsername: PropTypes.bool,
-  isPassword: PropTypes.bool,
-  onChangeText: PropTypes.func.isRequired,
-  onSubmitEditing: PropTypes.func,
+interface LoginInputProps {
+  type: string
+  isUsername?: boolean
+  isPassword?: boolean
+  onChangeText: any
+  onSubmitEditing?: any
   //   ref: PropTypes.any,
-  focusPasswordInput: PropTypes.bool,
-  isValid: PropTypes.bool,
-  validationWarning: PropTypes.string,
-};
+  focusPasswordInput?: boolean
+  isValid?: boolean
+  validationWarning?: string
+}
 
 export default LoginInput;
-- 
cgit v1.2.3-70-g09d2

