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 {
}
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
let email = dataCard.email
let point = dataCard.kaspro_point
......@@ -191,7 +191,7 @@ class Account extends React.Component {
handleSettings() {
if (this.state.clickSettings == 1) {
if (this.state.clickSettings == 3) {
this.props.navigation.navigate('Setting')
this.setState({ clickSettings: 0 })
} else {
......@@ -200,7 +200,6 @@ class Account extends React.Component {
}
}
render() {
const navigation = this.props.navigation
return (
......@@ -406,12 +405,12 @@ class Account extends React.Component {
}
<View style={{ flex: 1, marginBottom: 10 }}>
<TouchableOpacity onPress={()=> this.handleSettings()}>
{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.android.versionCode}</Text>
)}
<TouchableOpacity onPress={() => this.handleSettings()}>
{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.android.versionCode}</Text>
)}
</TouchableOpacity>
</View>
</ScrollView>
......
......@@ -382,7 +382,16 @@ class Auth extends React.Component {
}, title: 'RENEWAL'
}} />
<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="Transfer Balance" component={TransferBalance} options={{
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