|
|
@@ -41,10 +41,16 @@ const ViewHistory = ({
|
|
|
<TextView style={styles.textId}>{$t("receipt.labelTransactionID")}{item.creditHistoryPk}</TextView>
|
|
|
<TextView style={styles.textTitle}>{getTransTitle(item)}</TextView>
|
|
|
</View>
|
|
|
- { item.amountSymbol == 'M'
|
|
|
+ <View style={styles.rightTextView}>
|
|
|
+ { item.hasSettle && (item.amountSymbol == 'M'
|
|
|
? <TextView style={styles.amountDuct}>- {item.amount}</TextView>
|
|
|
: <TextView style={styles.amountText}>+ {item.amount}</TextView>
|
|
|
- }
|
|
|
+ )}
|
|
|
+ { item.hasSettle
|
|
|
+ ? <TextView style={styles.amountText}>Successful</TextView>
|
|
|
+ : <TextView style={styles.amountDuct}>Pending</TextView>
|
|
|
+ }
|
|
|
+ </View>
|
|
|
</Pressable>
|
|
|
);
|
|
|
|
|
|
@@ -82,5 +88,8 @@ const styles = StyleSheet.create({
|
|
|
amountText: {
|
|
|
color: colorAccent,
|
|
|
fontSize: 14
|
|
|
+ },
|
|
|
+ rightTextView: {
|
|
|
+ alignItems: "flex-end"
|
|
|
}
|
|
|
})
|