mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
35 lines
897 B
Swift
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()
|
|
}
|
|
}
|