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

Commit

Permalink
Fix for review
Browse files Browse the repository at this point in the history
  • Loading branch information
cuba committed Oct 17, 2023
1 parent 0f7f8a3 commit 74dd4c6
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Sources/Brave/Frontend/Shields/SubmitReportView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ struct SubmitReportView: View {

private var scrollContent: some View {
ScrollView {
// When we drop iOS 16, we can use NavigationStack with .navigationDestination
// For now we use a hack available to iOS 16
NavigationLink(isActive: $isSubmitted) {
SubmitReportSuccessView()
.navigationBarHidden(true)
} label: {
EmptyView()
}

VStack(alignment: .leading, spacing: 16) {
Text(Strings.Shields.reportBrokenSiteBody1)
Text(url.absoluteString)
Expand All @@ -58,6 +49,16 @@ struct SubmitReportView: View {
}
.padding()
}
.background {
// When we drop iOS 16, we can use NavigationStack with .navigationDestination
// For now we use a hack available to iOS 16
NavigationLink(isActive: $isSubmitted) {
SubmitReportSuccessView()
.navigationBarHidden(true)
} label: {
EmptyView()
}
}
.background(Color(.braveBackground))
.foregroundStyle(Color(braveSystemName: .textSecondary))
.navigationTitle(Strings.Shields.reportABrokenSite)
Expand Down

0 comments on commit 74dd4c6

Please sign in to comment.