From 5a720434f9e45e113962f86a939100c2f86ec1b3 Mon Sep 17 00:00:00 2001 From: kdxcxs Date: Mon, 30 Nov 2020 19:53:52 +0800 Subject: [PATCH] feat: bind input values to logical YooLogin component --- src/ui/YooLoginUI.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/ui/YooLoginUI.js b/src/ui/YooLoginUI.js index 08d3651..65dc767 100644 --- a/src/ui/YooLoginUI.js +++ b/src/ui/YooLoginUI.js @@ -45,18 +45,6 @@ const styles = StyleSheet.create({ }, }); -function LoginInput(props) { - return props.type === 'username' ? ( - - ) : ( - - ); -} - export default class YooLoginUI extends Component { constructor(props) { super(props); @@ -77,8 +65,20 @@ export default class YooLoginUI extends Component { return ( - - + this.props.setUsername(username)} + /> + this.props.setPassword(password)} + /> {this.state.loading ? (