|
@@ -81,15 +81,15 @@ export default class PointsHistory extends Component {
|
|
|
<View style={styles.itemView}>
|
|
<View style={styles.itemView}>
|
|
|
<MaterialCommunityIcons
|
|
<MaterialCommunityIcons
|
|
|
style={styles.iconType}
|
|
style={styles.iconType}
|
|
|
- name={item.action = "Increase" ? "ev-station" : "ticket-percent-outline"}
|
|
|
|
|
|
|
+ name={item.action == "Increase" ? "ev-station" : "ticket-percent-outline"}
|
|
|
size={20}
|
|
size={20}
|
|
|
color={textPrimary}/>
|
|
color={textPrimary}/>
|
|
|
<View style={styles.itemContent}>
|
|
<View style={styles.itemContent}>
|
|
|
<View style={ui.flex1}>
|
|
<View style={ui.flex1}>
|
|
|
<TextView style={styles.issueName}>{item.remarks}</TextView>
|
|
<TextView style={styles.issueName}>{item.remarks}</TextView>
|
|
|
- <TextView style={styles.issueDesc}>{item.siteName + ", " + item.chargeBoxId + ", " + item.refId}</TextView>
|
|
|
|
|
|
|
+ <TextView style={styles.issueDesc}>{(item.siteName ?? item.voucherName) + ", " + (item.chargeBoxId ? item.chargeBoxId + ", " : "") + item.refId}</TextView>
|
|
|
</View>
|
|
</View>
|
|
|
- { item.action = "Increase"
|
|
|
|
|
|
|
+ { item.action == "Increase"
|
|
|
? <TextView style={styles.amountText}>+ {item.points}</TextView>
|
|
? <TextView style={styles.amountText}>+ {item.points}</TextView>
|
|
|
: <TextView style={styles.amountDuct}>- {item.points}</TextView>
|
|
: <TextView style={styles.amountDuct}>- {item.points}</TextView>
|
|
|
}
|
|
}
|
|
@@ -167,7 +167,7 @@ const styles = StyleSheet.create({
|
|
|
width: 28,
|
|
width: 28,
|
|
|
height: 28,
|
|
height: 28,
|
|
|
textAlign: 'center',
|
|
textAlign: 'center',
|
|
|
- lineHeight: 26,
|
|
|
|
|
|
|
+ lineHeight: 27,
|
|
|
borderWidth: 1,
|
|
borderWidth: 1,
|
|
|
borderRadius: 30,
|
|
borderRadius: 30,
|
|
|
borderColor: textPrimary
|
|
borderColor: textPrimary
|