소스 검색

update app/pages/wallets/ViewHistory.js

wudebin 9 달 전
부모
커밋
e16372225f
1개의 변경된 파일11개의 추가작업 그리고 2개의 파일을 삭제
  1. 11 2
      Strides-APP/app/pages/wallets/ViewHistory.js

+ 11 - 2
Strides-APP/app/pages/wallets/ViewHistory.js

@@ -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"
   }
 })