Commit 29caaf4d authored by Trisno's avatar Trisno

enter token navigasi ke halaman new password jika sudah submit

parent a8d619a9
......@@ -52,6 +52,14 @@ class ResetPassword extends React.Component {
})
}
handleEnterToken() {
if (this.props.email == '') {
Alert.alert('','Harap masukan email terlebih dahulu')
} else {
this.props.navigation.navigate('New Password');
}
}
render() {
return (
<View style={styles.container}>
......@@ -73,7 +81,7 @@ class ResetPassword extends React.Component {
<Text style={{ alignSelf: 'center', top: 10, color: 'white', fontFamily: 'Gotham-Black', fontSize: 20 }}>SUBMIT</Text>
</View>
</TouchableOpacity>
<TouchableOpacity style={{ height: 60}} onPress={() => this.handleResetPassword()}>
<TouchableOpacity style={{ height: 60 }} onPress={() => this.handleEnterToken()}>
<Text style={{ alignSelf: 'center', color: '#CFB368', fontFamily: 'Gotham-Black', fontSize: 20 }}>ENTER TOKEN</Text>
</TouchableOpacity>
</View>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment