|
@@ -336,20 +336,31 @@ export default class SummaryV2 extends Component {
|
|
|
<Text style={styles.label}>{$t('wallet.labelChargeRates')}</Text>
|
|
<Text style={styles.label}>{$t('wallet.labelChargeRates')}</Text>
|
|
|
<Text style={styles.text}>{currency}{this.state.summaryInfo.chargeRates ?? '0.0'}</Text>
|
|
<Text style={styles.text}>{currency}{this.state.summaryInfo.chargeRates ?? '0.0'}</Text>
|
|
|
</View> */}
|
|
</View> */}
|
|
|
- <View style={styles.formRow}>
|
|
|
|
|
- <TextView style={styles.label}>{$t('wallet.labelExchangeRate')}</TextView>
|
|
|
|
|
- <TextView style={styles.text}>{this.state.summaryInfo.payment.exchangeRate ?? "-"}</TextView>
|
|
|
|
|
- </View>
|
|
|
|
|
|
|
+ { utils.isNotEmpty(this.state.summaryInfo.payment.exchangeRate) &&
|
|
|
|
|
+ <View style={styles.formRow}>
|
|
|
|
|
+ <TextView style={styles.label}>{$t('wallet.labelExchangeRate')}</TextView>
|
|
|
|
|
+ <TextView style={styles.text}>{this.state.summaryInfo.payment.exchangeRate ?? "-"}</TextView>
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
{/* <View style={styles.formRow}>
|
|
{/* <View style={styles.formRow}>
|
|
|
<Text style={styles.label}>{$t('wallet.labelPreviousBalance')}</Text>
|
|
<Text style={styles.label}>{$t('wallet.labelPreviousBalance')}</Text>
|
|
|
<Text style={styles.text}>{this.getSummaryText(this.state.summaryInfo.previousBalance)}</Text>
|
|
<Text style={styles.text}>{this.getSummaryText(this.state.summaryInfo.previousBalance)}</Text>
|
|
|
</View> */}
|
|
</View> */}
|
|
|
- <View style={styles.formRow}>
|
|
|
|
|
- <TextView style={styles.label}>{$t('wallet.labelResultingBalance')}</TextView>
|
|
|
|
|
- <TextView style={styles.text}>{this.state.summaryInfo.payment.resultingBalance ?? "-"}</TextView>
|
|
|
|
|
- </View>
|
|
|
|
|
|
|
+ { utils.isNotEmpty(this.state.summaryInfo.payment.resultingBalance) &&
|
|
|
|
|
+ <View style={styles.formRow}>
|
|
|
|
|
+ <TextView style={styles.label}>{$t('wallet.labelResultingBalance')}</TextView>
|
|
|
|
|
+ <TextView style={styles.text}>{this.state.summaryInfo.payment.resultingBalance ?? "-"}</TextView>
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
|
|
+ { utils.isNotEmpty(this.state.summaryInfo.payment.refundAmount) &&
|
|
|
|
|
+ <View style={styles.formRow}>
|
|
|
|
|
+ <TextView style={styles.label}>{$t('wallet.labelRefundAmount')}</TextView>
|
|
|
|
|
+ <TextView style={styles.text}>{this.state.summaryInfo.payment.refundAmount ?? "-"}</TextView>
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
</View>
|
|
</View>
|
|
|
}
|
|
}
|
|
|
|
|
+ <EndView/>
|
|
|
{ (this.state.isActully && utils.isNotEmpty(this.state.summaryInfo.top)) &&
|
|
{ (this.state.isActully && utils.isNotEmpty(this.state.summaryInfo.top)) &&
|
|
|
<View style={styles.bottomButton}>
|
|
<View style={styles.bottomButton}>
|
|
|
<TextView
|
|
<TextView
|
|
@@ -459,7 +470,7 @@ const styles = StyleSheet.create({
|
|
|
...ui.underline
|
|
...ui.underline
|
|
|
},
|
|
},
|
|
|
bottomButton: {
|
|
bottomButton: {
|
|
|
- marginTop: 32,
|
|
|
|
|
|
|
+ marginTop: 16,
|
|
|
marginBottom: 16
|
|
marginBottom: 16
|
|
|
},
|
|
},
|
|
|
tipText: {
|
|
tipText: {
|