diff options
author | Justin Shillingford <jgs272@cornell.edu> | 2020-06-29 19:47:19 -0400 |
---|---|---|
committer | Justin Shillingford <jgs272@cornell.edu> | 2020-06-29 19:47:19 -0400 |
commit | 4bf146fcdb29ba4424d24f63d8809ee830112d68 (patch) | |
tree | 19a5d1120a29ae9fcd7364124df2c13173245160 /src/components | |
parent | ff9dba9a4241a799970ef36866b595d6f6940531 (diff) |
Updated, props to use interface
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/common/LoginInput.tsx | 20 |
1 files changed, 10 insertions, 10 deletions
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; |