Commit 3f3dcce9 authored by William Goszal's avatar William Goszal 🚴

hide point text dan use point / point+balance di useBalance dan redeemCode

parent ee08661f
......@@ -116,7 +116,8 @@ class RedeemCode extends React.Component {
<NumberFormat decimalScale={0} value={this.props.balance_redeem} renderText={value => <Text style={{ fontSize: 20, fontFamily: 'Gotham-Black', color: '#838383' }}>Rp. {value}</Text>} displayType={'text'} thousandSeparator={true} prefix={''} />
</View>
</View>
<View style={styles.current_balance}>
{/* <View style={styles.current_balance}> */}
<View style={{display:'none'}}>
<View style={{ flex: 1, margin: 10 }}>
<Text style={{ fontSize: 20, fontFamily: 'Gotham-Black', color: '#838383' }} >{i18n.t('point')}</Text>
</View>
......
......@@ -336,9 +336,9 @@ class UseBalance extends React.Component {
<Text style={{ fontFamily: 'Gotham-Black', color: '#838383', fontSize: 18, textAlign: 'center', margin: 1 }}>IDR {this.state.current_balance}</Text>
<Text style={{ fontFamily: 'Gotham-Black', color: '#CFB368', fontSize: 20, textAlign: 'center', margin: 3, marginTop: 10 }}>{i18n.t('point')}</Text>
<Text style={{ fontFamily: 'Gotham-Black', color: '#CFB368', fontSize: 20, textAlign: 'center', margin: 3, marginTop: 10, display:'none' }}>{i18n.t('point')}</Text>
<Text style={{ fontFamily: 'Gotham-Black', color: '#838383', fontSize: 18, textAlign: 'center', margin: 1 }}>IDR {this.state.kaspro_point}</Text>
<Text style={{ fontFamily: 'Gotham-Black', color: '#838383', fontSize: 18, textAlign: 'center', margin: 1, display:'none' }}>IDR {this.state.kaspro_point}</Text>
{/* <TextInput style={{ height: 40, borderWidth: 1, padding: 5, margin: 10, borderRadius: 10, borderColor: 'grey', fontFamily: 'Gotham-Black', textAlign: 'center', color: 'grey', fontWeight: 'bold', fontSize: 20 }}
onChangeText={(redeem_balance) => this.setState({ redeem_balance })}
......@@ -393,7 +393,7 @@ class UseBalance extends React.Component {
)
}
</View>
<View style={{ alignItems: 'center' }}>
<View style={{ alignItems: 'center', display:'none' }}>
{
this.state.input_redeem == 0 || parseInt(this.state.input_redeem) > parseInt(this.state.kasproPoint) ? (
<Card style={{ margin: 5, padding: 10, backgroundColor: 'gray' }}>
......@@ -432,7 +432,7 @@ class UseBalance extends React.Component {
)
}
</View>
<View style={{ alignItems: 'center' }}>
<View style={{ alignItems: 'center', display:'none' }}>
{
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' }}>
......
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