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