Remove green sent/received icons from the Activity #3770

pull/3794/head
Krypto Pank 3 years ago
parent 5427a85013
commit 4982b39b02
  1. 9
      AlphaWallet/Activities/ViewModels/ActivityStateViewViewModel.swift
  2. 5
      AlphaWallet/Transactions/ViewModels/TransactionRowCellViewModel.swift

@ -11,16 +11,7 @@ struct ActivityStateViewViewModel {
var stateImage: UIImage? { var stateImage: UIImage? {
switch state { switch state {
case .completed: case .completed:
switch nativeViewType {
case .erc20Sent, .erc721Sent, .nativeCryptoSent:
return R.image.activitySend()
case .erc20Received, .erc721Received, .nativeCryptoReceived:
return R.image.activityReceive()
case .erc20OwnerApproved, .erc20ApprovalObtained, .erc721OwnerApproved, .erc721ApprovalObtained:
return nil return nil
case .none:
return nil
}
case .pending: case .pending:
return R.image.activityPending() return R.image.activityPending()
case .failed: case .failed:

@ -138,10 +138,7 @@ struct TransactionRowCellViewModel {
switch transactionRow.state { switch transactionRow.state {
case .error, .unknown, .failed: return R.image.transaction_error() case .error, .unknown, .failed: return R.image.transaction_error()
case .completed: case .completed:
switch transactionRowViewModel.direction { return nil
case .incoming: return R.image.received()
case .outgoing: return R.image.sent()
}
case .pending: case .pending:
return R.image.transaction_pending() return R.image.transaction_pending()
} }

Loading…
Cancel
Save