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