From eccdcfacc3a71142ed63717f05fa6b4346fb3024 Mon Sep 17 00:00:00 2001 From: Juraj Hilje Date: Sat, 14 May 2022 14:27:46 +0200 Subject: [PATCH] chore: update AccountView.swift --- .../AccountScreen/AccountViewController.swift | 8 -- .../AccountScreen/View/AccountView.swift | 12 -- IVPNClient/Scenes/Base.lproj/Main.storyboard | 126 +++--------------- 3 files changed, 19 insertions(+), 127 deletions(-) diff --git a/IVPNClient/Scenes/AccountScreen/AccountViewController.swift b/IVPNClient/Scenes/AccountScreen/AccountViewController.swift index 301faf0f7..0b7c5319c 100644 --- a/IVPNClient/Scenes/AccountScreen/AccountViewController.swift +++ b/IVPNClient/Scenes/AccountScreen/AccountViewController.swift @@ -130,14 +130,6 @@ class AccountViewController: UITableViewController { extension AccountViewController { override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { - if indexPath.row == 0 && serviceType == .standard { - return 220 - } - - if indexPath.row == 0 && serviceType == .pro { - return 150 - } - return 71 } diff --git a/IVPNClient/Scenes/AccountScreen/View/AccountView.swift b/IVPNClient/Scenes/AccountScreen/View/AccountView.swift index a85e50ee5..c1634897b 100644 --- a/IVPNClient/Scenes/AccountScreen/View/AccountView.swift +++ b/IVPNClient/Scenes/AccountScreen/View/AccountView.swift @@ -33,8 +33,6 @@ class AccountView: UITableView { @IBOutlet weak var subscriptionLabel: UILabel! @IBOutlet weak var activeUntilLabel: UILabel! @IBOutlet weak var logOutActionButton: UIButton! - @IBOutlet weak var planLabel: UILabel! - @IBOutlet weak var planDescriptionHeightConstraint: NSLayoutConstraint! @IBOutlet weak var addMoreTimeButton: UIButton! // MARK: - Properties - @@ -49,17 +47,7 @@ class AccountView: UITableView { statusLabel.backgroundColor = viewModel.statusColor subscriptionLabel.text = viewModel.subscriptionText activeUntilLabel.text = viewModel.activeUntilText - planLabel.textColor = .white addMoreTimeButton.isHidden = Application.shared.serviceStatus.isLegacyAccount() - - switch serviceType { - case .standard: - break - case .pro: - planLabel.text = "Login to the website to change subscription plan" - planLabel.font = .systemFont(ofSize: 12, weight: .regular) - planDescriptionHeightConstraint.constant = 58 - } } func initQRCode(viewModel: AccountViewModel) { diff --git a/IVPNClient/Scenes/Base.lproj/Main.storyboard b/IVPNClient/Scenes/Base.lproj/Main.storyboard index d8a41717d..809e85fe3 100644 --- a/IVPNClient/Scenes/Base.lproj/Main.storyboard +++ b/IVPNClient/Scenes/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -20,7 +20,7 @@ - + - + + - - + @@ -3828,8 +3745,6 @@ Login to the website to change subscription plan - - @@ -4003,9 +3918,6 @@ Login to the website to change subscription plan - - -