Files
safe-ios/Multisig/UI/ClaimToken/ClaimNotAvailableViewController.swift
2022-10-13 22:55:20 +02:00

47 lines
1.3 KiB
Swift

//
// ClaimNotAvailableViewController.swift
// Multisig
//
// Created by Vitaly on 26.07.22.
// Copyright © 2022 Gnosis Ltd. All rights reserved.
//
import UIKit
class ClaimNotAvailableViewController: UIViewController {
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var descriptionLabel: UILabel!
@IBOutlet weak var safeDAOLink: HyperlinkButtonView!
@IBOutlet weak var forumLink: HyperlinkButtonView!
@IBOutlet weak var okButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
Tracker.trackEvent(.screenClaimNot)
ViewControllerFactory.addCloseButton(self)
ViewControllerFactory.makeTransparentNavigationBar(self)
titleLabel.setStyle(.title1)
descriptionLabel.setStyle(.body)
safeDAOLink.setText("Safe DAO", underlined: false)
safeDAOLink.url = App.configuration.contact.safeDAOURL
safeDAOLink.trackingEvent = .userClaimNotDao
forumLink.setText("Forum", underlined: false)
forumLink.url = App.configuration.contact.forumURL
forumLink.trackingEvent = .userClaimNotForum
okButton.setText("OK, I Understand", .filled)
}
@IBAction func didTapOkButton(_ sender: Any) {
Tracker.trackEvent(.userClaimNotOk)
dismiss(animated: true, completion: nil)
}
}