Skip to content

Commit

Permalink
Uplift of #25617 (squashed) to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-builds authored and kylehickinson committed Sep 20, 2024
1 parent 656ec8a commit b2858e3
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import WebKit

struct AdBlockDebugView: View {
var body: some View {
List {
Form {
CompileContentBlockersSectionView()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct BraveSearchDebugMenu: View {
@State private var storageTypes: [String] = []

var body: some View {
List {
Form {
Section {
Toggle("Enable callback logging", isOn: $logging.isEnabled)
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct BraveWalletDebugMenu: View {
@ObservedObject var enableBitcoinTestnet = Preferences.Wallet.isBitcoinTestnetEnabled

var body: some View {
List {
Form {
Section {
Toggle("Enable Bitcoin Testnet", isOn: $enableBitcoinTestnet.value)
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private struct BasicStringInputView: View {
@State private var text: String = ""

var body: some View {
List {
Form {
Section {
TextField(coreSwitch.displayString, text: $text)
.disableAutocorrection(true)
Expand Down Expand Up @@ -135,7 +135,7 @@ private struct BasicPickerInputView: View {
@State private var selectedItem: String = ""

var body: some View {
List {
Form {
Picker("", selection: $selectedItem) {
Text("Default")
.foregroundColor(Color(.secondaryBraveLabel))
Expand Down Expand Up @@ -190,7 +190,7 @@ private struct CustomSwitchInputView: View {
}

var body: some View {
List {
Form {
Section {
TextField("Key", text: $key)
.disableAutocorrection(true)
Expand Down Expand Up @@ -310,7 +310,7 @@ struct BraveCoreDebugSwitchesView: View {
}

var body: some View {
List {
Form {
Section {
Text("Switches only affect fresh launches")
.frame(maxWidth: .infinity)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct AdvancedShieldsSettingsView: View {
}

var body: some View {
List {
Form {
DefaultShieldsSectionView(settings: settings)
ClearDataSectionView(settings: settings)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct FilterListAddURLView: View {

var body: some View {
NavigationView {
List {
Form {
Section(
content: {
VStack(alignment: .leading) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct PrivacyReportSettingsView: View {
@State private var showClearDataPrompt: Bool = false

var body: some View {
List {
Form {
Section(footer: Text(Strings.PrivacyHub.settingsEnableShieldsFooter)) {
Toggle(Strings.PrivacyHub.settingsEnableShieldsTitle, isOn: $shieldsDataEnabled.value)
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct ShredSettingsView: View {
}

var body: some View {
List {
Form {
Section {
Picker(selection: $settings.shredLevel) {
ForEach(SiteShredLevel.allCases) { level in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ struct WebsiteRedirectsSettingsView: View {
@ObservedObject private var npr = Preferences.WebsiteRedirects.npr

var body: some View {
List {
Form {
Section {
Toggle(isOn: $reddit.value) {
Text("reddit.com \(Image(systemName: "arrow.right")) old.reddit.com")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public struct NewsSettingsView: View {
}

public var body: some View {
List {
Form {
Section {
if isNewsEnabled.value {
destinations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public struct BraveNewsDebugSettingsView: View {
}

public var body: some View {
List {
Form {
Section {
Picker("Environment", selection: $environment) {
ForEach(FeedDataSource.Environment.allCases, id: \.self) { env in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public struct Web3SettingsView: View {
}

public var body: some View {
List {
Form {
if let settingsStore = settingsStore {
if let networkStore = networkStore, let keyringStore = keyringStore {
WalletSettingsView(
Expand Down

0 comments on commit b2858e3

Please sign in to comment.