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

set base url page header

parent 0714322f
...@@ -112,7 +112,7 @@ class Account extends React.Component { ...@@ -112,7 +112,7 @@ class Account extends React.Component {
} }
Axios.post(this.props.BASE_URL+'crm/v2/member/get_profile', params).then(res => { Axios.post(this.props.BASE_URL + 'crm/v2/member/get_profile', params).then(res => {
const dataCard = res.data const dataCard = res.data
let email = dataCard.email let email = dataCard.email
let point = dataCard.kaspro_point let point = dataCard.kaspro_point
...@@ -191,7 +191,7 @@ class Account extends React.Component { ...@@ -191,7 +191,7 @@ class Account extends React.Component {
handleSettings() { handleSettings() {
if (this.state.clickSettings == 1) { if (this.state.clickSettings == 3) {
this.props.navigation.navigate('Setting') this.props.navigation.navigate('Setting')
this.setState({ clickSettings: 0 }) this.setState({ clickSettings: 0 })
} else { } else {
...@@ -200,7 +200,6 @@ class Account extends React.Component { ...@@ -200,7 +200,6 @@ class Account extends React.Component {
} }
} }
render() { render() {
const navigation = this.props.navigation const navigation = this.props.navigation
return ( return (
...@@ -406,7 +405,7 @@ class Account extends React.Component { ...@@ -406,7 +405,7 @@ class Account extends React.Component {
} }
<View style={{ flex: 1, marginBottom: 10 }}> <View style={{ flex: 1, marginBottom: 10 }}>
<TouchableOpacity onPress={()=> this.handleSettings()}> <TouchableOpacity onPress={() => this.handleSettings()}>
{Platform.OS === 'ios' ? ( {Platform.OS === 'ios' ? (
<Text style={{ color: 'grey', fontSize: 12, textAlign: 'center' }}>Version {Constants.manifest.version} Build {Constants.manifest.ios.buildNumber}</Text> <Text style={{ color: 'grey', fontSize: 12, textAlign: 'center' }}>Version {Constants.manifest.version} Build {Constants.manifest.ios.buildNumber}</Text>
) : ( ) : (
......
...@@ -382,7 +382,16 @@ class Auth extends React.Component { ...@@ -382,7 +382,16 @@ class Auth extends React.Component {
}, title: 'RENEWAL' }, title: 'RENEWAL'
}} /> }} />
<Stack.Screen name="Account" component={Account} /> <Stack.Screen name="Account" component={Account} />
<Stack.Screen name="Setting" component={SettingUrl}/> <Stack.Screen name="Setting" component={SettingUrl} options={{headerStyle: { backgroundColor: "#CFB368" },
headerBackTitleStyle: { color: 'white' },
headerTintColor: '#fff',
headerTitleAlign: 'center',
headerTitleStyle: {
fontFamily: 'Gotham-Black',
color: 'white',
fontSize: 20,
},
title: 'SETTING URL'}}/>
<Stack.Screen name="Login" component={Login} options={{ headerShown: false }} /> <Stack.Screen name="Login" component={Login} options={{ headerShown: false }} />
<Stack.Screen name="Transfer Balance" component={TransferBalance} options={{ <Stack.Screen name="Transfer Balance" component={TransferBalance} options={{
headerStyle: { backgroundColor: "#CFB368" }, headerStyle: { backgroundColor: "#CFB368" },
......
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