mirror of
https://github.com/NinjaCheetah/RIT-Dining.git
synced 2026-03-04 21:25:27 -05:00
Add feedback submission sheet
Also fixed a bug where locations with overlapping close and open times would show "Closing Soon" for 30 minutes just to then switch to "Open" when it rolled over.
This commit is contained in:
@@ -19,6 +19,7 @@ struct ContentView: View {
|
||||
|
||||
@State private var loadFailed: Bool = false
|
||||
@State private var showingDonationSheet: Bool = false
|
||||
@State private var showingFeedbackSheet: Bool = false
|
||||
@State private var searchText: String = ""
|
||||
@State private var path = NavigationPath()
|
||||
|
||||
@@ -149,6 +150,11 @@ struct ContentView: View {
|
||||
Image(systemName: "info.circle")
|
||||
Text("About")
|
||||
}
|
||||
Button(action: {
|
||||
showingFeedbackSheet = true
|
||||
}) {
|
||||
Label("Feedback", systemImage: "paperplane")
|
||||
}
|
||||
Button(action: {
|
||||
showingDonationSheet = true
|
||||
}) {
|
||||
@@ -187,6 +193,9 @@ struct ContentView: View {
|
||||
.sheet(isPresented: $showingDonationSheet) {
|
||||
DonationView()
|
||||
}
|
||||
.sheet(isPresented: $showingFeedbackSheet) {
|
||||
FeedbackView()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user