Remove green sent/received icons from the Activity #3770

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

@ -11,16 +11,7 @@ struct ActivityStateViewViewModel {
var stateImage: UIImage? {
switch state {
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
case .none:
return nil
}
return nil
case .pending:
return R.image.activityPending()
case .failed:

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

Loading…
Cancel
Save