Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Changes to Redeem button
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel committed Nov 15, 2023
1 parent 43b9d96 commit 396ec89
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Sources/BraveStrings/BraveStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2909,6 +2909,11 @@ extension Strings {
NSLocalizedString("vpn.vpnConfigPermissionDeniedErrorTitle", tableName: "BraveShared", bundle: .module,
value: "Permission denied",
comment: "Title for an alert when the user didn't allow to install VPN profile")

public static let vpnRedeemCodeButtonActionTitle =
NSLocalizedString("vpn.vpnRedeemCodeButtonActionTitle", tableName: "BraveShared", bundle: .module,
value: "Redeem Code",
comment: "Title for a button for enabling the Redeem Code flow")

public static let vpnConfigPermissionDeniedErrorBody =
NSLocalizedString("vpn.vpnConfigPermissionDeniedErrorBody", tableName: "BraveShared", bundle: .module,
Expand Down
4 changes: 2 additions & 2 deletions Sources/BraveVPN/BuyVPNViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class BuyVPNViewController: VPNSetupLoadingController {
}

let redeemButton = UIButton().then {
$0.setTitle("Redeem Code", for: .normal)
$0.titleLabel?.font = .systemFont(ofSize: 15, weight: .semibold)
$0.setTitle(Strings.VPN.vpnRedeemCodeButtonActionTitle, for: .normal)
$0.titleLabel?.font = .systemFont(ofSize: 13, weight: .medium)
$0.titleLabel?.textAlignment = .center

$0.addTarget(self, action: #selector(redeemOfferSubscriptionCode), for: .touchUpInside)
Expand Down

0 comments on commit 396ec89

Please sign in to comment.