Commit dacad9e1 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

revisi email confirmation

parent ac2dff6e
...@@ -115,16 +115,16 @@ class EmailConfirmation extends React.Component { ...@@ -115,16 +115,16 @@ class EmailConfirmation extends React.Component {
} }
handleCancel() { handleCancel() {
if (this.props.pageEmailConfirmation == true) { if (this.props.isEmailverif == true) {
let pageProps = { let pageProps = {
pageEmailConfirmation: false isEmailverif: false
} }
this.props.setPage(pageProps) this.props.setPage(pageProps)
this.props.navigation.navigate('Login'); this.props.navigation.navigate('Login');
} else { } else {
console.log("KE REGISTER ") console.log("KE REGISTER ")
let pageProps = { let pageProps = {
pageEmailConfirmation: false isEmailverif: false
} }
this.props.setPage(pageProps) this.props.setPage(pageProps)
this.props.navigation.navigate('New Register'); this.props.navigation.navigate('New Register');
...@@ -226,7 +226,7 @@ class EmailConfirmation extends React.Component { ...@@ -226,7 +226,7 @@ class EmailConfirmation extends React.Component {
<TouchableOpacity style={{ height: 60 }} onPress={() => this.handleResend()}> <TouchableOpacity style={{ height: 60 }} onPress={() => this.handleResend()}>
<Text style={{ alignSelf: 'center', color: '#CFB368', fontFamily: 'Gotham-Black', fontSize: 20, top: 10 }}>RESEND EMAIL TOKEN</Text> <Text style={{ alignSelf: 'center', color: '#CFB368', fontFamily: 'Gotham-Black', fontSize: 20, top: 10 }}>RESEND EMAIL TOKEN</Text>
</TouchableOpacity> </TouchableOpacity>
{this.props.pageEmailConfirmation == true ? ( {this.props.isEmailverif == true ? (
<TouchableOpacity style={{ height: 60 }} onPress={() => this.props.navigation.navigate('Change Email')}> <TouchableOpacity style={{ height: 60 }} onPress={() => this.props.navigation.navigate('Change Email')}>
<Text style={{ alignSelf: 'center', color: '#CFB368', fontFamily: 'Gotham-Black', fontSize: 20, }}>CHANGE EMAIL</Text> <Text style={{ alignSelf: 'center', color: '#CFB368', fontFamily: 'Gotham-Black', fontSize: 20, }}>CHANGE EMAIL</Text>
</TouchableOpacity> </TouchableOpacity>
......
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