Files
safe-ios/Multisig/UI/Transaction/TransactionListViewController/Cells/TransactionsListConflictHeaderTableViewCell.swift
2023-05-17 13:23:57 +02:00

35 lines
897 B
Swift

//
// TransactionsListConflictHeaderTableViewCell.swift
// Multisig
//
// Created by Moaaz on 12/15/20.
// Copyright © 2020 Gnosis Ltd. All rights reserved.
//
import UIKit
class TransactionsListConflictHeaderTableViewCell: UITableViewCell, ExternalURLSource {
@IBOutlet private weak var nonceLabel: UILabel!
@IBOutlet weak var descriptionLabel: UILabel!
@IBOutlet weak var learnMoreButton: UIButton!
private(set) var url: URL? = {
App.configuration.help.conflictURL
}()
override func awakeFromNib() {
super.awakeFromNib()
nonceLabel.setStyle(.footnoteSecondary)
descriptionLabel.setStyle(.footnoteSecondary)
learnMoreButton.setText("Learn more", .plain)
}
func set(nonce: String) {
nonceLabel.text = nonce
}
@IBAction func learnMoreButtonTouched(_ sender: Any) {
openExternalURL()
}
}