Commit 5ee85475 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

change email ada ketika state register saja.

parent c466856b
...@@ -19,7 +19,7 @@ class EmailConfirmation extends React.Component { ...@@ -19,7 +19,7 @@ class EmailConfirmation extends React.Component {
} }
componentDidMount() { componentDidMount() {
// console.log("SESSION " + this.props.session_id) console.log("SESSION " + this.props.pageEmailConfirmation)
} }
handleSubmit() { handleSubmit() {
...@@ -147,7 +147,7 @@ class EmailConfirmation extends React.Component { ...@@ -147,7 +147,7 @@ class EmailConfirmation extends React.Component {
}).catch(error => { }).catch(error => {
let response = error.response.data; let response = error.response.data;
Alert.alert('','Silahkan Cek Email Kembali'); Alert.alert('', 'Silahkan Cek Email Kembali');
this.setState({ this.setState({
spinner: false, spinner: false,
}) })
...@@ -216,9 +216,11 @@ class EmailConfirmation extends React.Component { ...@@ -216,9 +216,11 @@ 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 ? (
<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>
) : (null)}
</View> </View>
</View> </View>
<View style={{ flex: 1, flexDirection: 'row' }}> <View style={{ flex: 1, flexDirection: 'row' }}>
......
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