Commit 31d8beef authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

placeholder

parent 9749b55e
...@@ -194,8 +194,19 @@ class Auth extends React.Component { ...@@ -194,8 +194,19 @@ class Auth extends React.Component {
</> </>
) : this.props.pageEmailConfirmation === true ? ( ) : this.props.pageEmailConfirmation === true ? (
<> <>
<Stack.Screen name="Email Confirmation" component={EmailConfirmation} /> <Stack.Screen name="Email Confirmation" component={EmailConfirmation} options={{
<Stack.Screen name="Login" component={Login} /> headerStyle: { backgroundColor: '#CFB368' },
headerTitleContainerStyle: { alignContent: 'center' },
headerTitleAlign: 'center',
headerTintColor: '#fff',
headerTitleStyle: {
alignSelf: 'center',
fontFamily: 'Gotham-Black',
color: 'white',
textAlign: 'center'
}, title: 'EMAIL CONFIRMATION'
}} />
<Stack.Screen name="Login" component={Login} options={{headerShown:false}} />
<Stack.Screen name="LoginWelcome" component={WelcomeLog} options={{ <Stack.Screen name="LoginWelcome" component={WelcomeLog} options={{
headerShown: false, headerShown: false,
}} /> }} />
...@@ -301,7 +312,19 @@ class Auth extends React.Component { ...@@ -301,7 +312,19 @@ class Auth extends React.Component {
title: 'TRANSFER BALANCE' title: 'TRANSFER BALANCE'
}} /> }} />
<Stack.Screen name="Register" component={Register} /> <Stack.Screen name="Register" component={Register} />
<Stack.Screen name="Email Confirmation" component={EmailConfirmation} /> <Stack.Screen name="Email Confirmation" component={EmailConfirmation} options={{
headerStyle: { backgroundColor: '#CFB368' },
headerTitleContainerStyle: { alignContent: 'center' },
headerTitleAlign: 'center',
headerTintColor: '#fff',
headerTitleStyle: {
alignSelf: 'center',
fontFamily: 'Gotham-Black',
fontSize: 20,
color: 'white',
textAlign: 'center'
}, title: 'EMAIL CONFIRMATION'
}} />
<Stack.Screen name="Upgrade Premium" component={UpgradePremium} <Stack.Screen name="Upgrade Premium" component={UpgradePremium}
options={{ options={{
headerStyle: { backgroundColor: '#CFB368' }, headerStyle: { backgroundColor: '#CFB368' },
......
...@@ -154,9 +154,11 @@ class CardActivation extends React.Component { ...@@ -154,9 +154,11 @@ class CardActivation extends React.Component {
} }
{ {
this.state.timer === 0 ? ( this.state.timer === 0 ? (
<View style={{ width: 90, height: 40, alignSelf: 'center', margin: 20, top: 0 }}> <TouchableOpacity onPress={() => this.ResendToken()}>
<Button title="Resend Token" onPress={() => this.ResendToken()}></Button> <View style={{ height: 40, borderRadius: 20, backgroundColor: '#CFB368', margin: 20, justifyContent: 'center' }}>
<Text style={{ fontFamily: 'Gotham-Black', color: 'white', fontSize: 20, textAlign: 'center', margin: 15 }}>Resend Token</Text>
</View> </View>
</TouchableOpacity>
) : (null)} ) : (null)}
<View style={styles.field_email}> <View style={styles.field_email}>
......
This diff is collapsed.
...@@ -117,7 +117,8 @@ class MenuConfirmation extends React.Component { ...@@ -117,7 +117,8 @@ class MenuConfirmation extends React.Component {
}).catch(error => { }).catch(error => {
console.log(error.response) console.log(error.response)
if (error.response.status <= 500) { if (error.response.status <= 500) {
Alert.alert(String(error.response.status), 'Internal Server Error') let response = error.response.data;
Alert.alert('',response.msg);
} else { } else {
let response = error.response.data; let response = error.response.data;
Alert.alert('', response.msg); Alert.alert('', response.msg);
......
...@@ -353,6 +353,7 @@ const styles = StyleSheet.create({ ...@@ -353,6 +353,7 @@ const styles = StyleSheet.create({
container: { container: {
flex: 1, flex: 1,
backgroundColor: 'white', backgroundColor: 'white',
}, },
// shadow: { // shadow: {
......
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