Commit 0d03deef authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo
parents 699615fc 972fa6ef
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -391,14 +391,14 @@ class Home extends React.Component { ...@@ -391,14 +391,14 @@ class Home extends React.Component {
// style={styles.submitUpgradePemium} // style={styles.submitUpgradePemium}
activeOpacity={.5} onPress={() => this.props.navigation.navigate('TopUpInfo')}> activeOpacity={.5} onPress={() => this.props.navigation.navigate('TopUpInfo')}>
<View style={styles.topUseBalance}> <View style={styles.topUseBalance}>
<Text style={{ textAlign: 'center', color: 'white', fontFamily: 'Gotham-Black', fontSize: 15 }}>TOP UP BALANCE </Text> <Text style={{ textAlign: 'center', color: 'white', fontFamily: 'Gotham-Black', fontSize: 14 }}>TOP UP BALANCE </Text>
</View> </View>
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity <TouchableOpacity
// style={styles.submitUpgradePemium} // style={styles.submitUpgradePemium}
activeOpacity={.5} onPress={() => this._useBalance()}> activeOpacity={.5} onPress={() => this._useBalance()}>
<View style={styles.topUseBalance}> <View style={styles.topUseBalance}>
<Text style={{ textAlign: 'center', color: 'white', fontFamily: 'Gotham-Black', fontSize: 15 }}>USE BALANCE </Text> <Text style={{ textAlign: 'center', color: 'white', fontFamily: 'Gotham-Black', fontSize: 14 }}>USE BALANCE </Text>
</View> </View>
</TouchableOpacity> </TouchableOpacity>
</View> </View>
...@@ -486,8 +486,7 @@ const styles = StyleSheet.create({ ...@@ -486,8 +486,7 @@ const styles = StyleSheet.create({
height: 40, height: 40,
top: 20, top: 20,
margin: 5, margin: 5,
padding: 10, paddingVertical : 12,
paddingBottom : 10,
paddingHorizontal: 16, paddingHorizontal: 16,
borderRadius: 10, borderRadius: 10,
backgroundColor: '#CFB368', backgroundColor: '#CFB368',
......
...@@ -61,10 +61,10 @@ class UseBalance extends React.Component { ...@@ -61,10 +61,10 @@ class UseBalance extends React.Component {
// // Buat Debug // // Buat Debug
// this.setState({ // this.setState({
// current_balance: '5,000', // current_balance: '500,000',
// kaspro_point: '10,000', // kaspro_point: '0',
// kasproBalance: '5,000'.replace(/,/g, ''), // kasproBalance: '500,000'.replace(/,/g, ''),
// kasproPoint: '10,000'.replace(/,/g, '') // kasproPoint: '0'.replace(/,/g, '')
// }) // })
// console.log("INI SESSION " + this.props.session_id) // console.log("INI SESSION " + this.props.session_id)
...@@ -428,7 +428,7 @@ class UseBalance extends React.Component { ...@@ -428,7 +428,7 @@ class UseBalance extends React.Component {
</View> </View>
<View style={{ alignItems: 'center' }}> <View style={{ alignItems: 'center' }}>
{ {
this.state.input_redeem == 0 || parseInt(this.state.input_redeem) > parseInt(this.state.kasproPoint) + parseInt(this.state.kasproBalance) ? ( this.state.input_redeem == 0 || this.state.kasproPoint == 0 || parseInt(this.state.input_redeem) > parseInt(this.state.kasproPoint) + parseInt(this.state.kasproBalance) ? (
<Card style={{ margin: 5, padding: 10, backgroundColor: 'gray' }}> <Card style={{ margin: 5, padding: 10, backgroundColor: 'gray' }}>
<View style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' }}> <View style={{ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center' }}>
<View> <View>
......
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