Skip to content

Commit

Permalink
[iOS] - Fix titles of VPN Server Selection & Support Sections (uplift…
Browse files Browse the repository at this point in the history
… to 1.69.x) (#25460)

Uplift of #25455 (squashed) to release
  • Loading branch information
brave-builds authored Sep 6, 2024
1 parent 034e265 commit 9f07bd7
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import GuardianConnect
import Preferences
import Shared
import Static
import SwiftUI
import UIKit
import os.log
import SwiftUI

public class BraveVPNSettingsViewController: TableViewController {

Expand Down Expand Up @@ -209,15 +209,16 @@ public class BraveVPNSettingsViewController: TableViewController {
)

let serverSection = Section(
header: .title(Strings.support.capitalized),
header: .title(Strings.VPN.settingsServerSection),
rows: [
Row(
text: locationCountry,
detailText: locationCity,
selection: { [unowned self] in
self.selectServerTapped()
},
image: BraveVPN.serverLocation.isoCode?.regionFlagImage ?? UIImage(braveSystemNamed: "leo.globe"),
image: BraveVPN.serverLocation.isoCode?.regionFlagImage
?? UIImage(braveSystemNamed: "leo.globe"),
accessory: .disclosureIndicator,
cellClass: MultilineSubtitleCell.self,
uuid: locationCellId
Expand All @@ -244,7 +245,7 @@ public class BraveVPNSettingsViewController: TableViewController {
)

let techSupportSection = Section(
header: .title(Strings.VPN.settingsServerSection),
header: .title(Strings.support.capitalized),
rows: [
Row(
text: Strings.VPN.settingsContactSupport,
Expand All @@ -259,14 +260,15 @@ public class BraveVPNSettingsViewController: TableViewController {
self.openURL?(.brave.braveVPNFaq)
},
cellClass: ButtonCell.self
)
])
),
]
)

dataSource.sections = [
vpnStatusSection,
subscriptionSection,
serverSection,
techSupportSection
techSupportSection,
]
}

Expand Down

0 comments on commit 9f07bd7

Please sign in to comment.