adding routing for the inbox sheet
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// InboxView.swift
|
||||
// nirvana-ios
|
||||
//
|
||||
// Created by Arjun Patel on 12/20/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct InboxView: View {
|
||||
var body: some View {
|
||||
Text("This is the inbox where you can see a bunch of inboxes")
|
||||
//TODO: add illustration if there is no one in inbox, but have button to open sheet for contacts with the sheet view object
|
||||
}
|
||||
}
|
||||
|
||||
struct InboxView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
InboxView()
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,7 @@ struct CircleNavigationView: View {
|
||||
Menu {
|
||||
Button(role: .destructive) {
|
||||
print("manage inbox")
|
||||
self.sheetView = .inbox
|
||||
} label: {
|
||||
Label("inbox", systemImage: "envelope.badge")
|
||||
.foregroundColor(NirvanaColor.teal)
|
||||
|
||||
@@ -45,8 +45,11 @@ struct InnerCircleView: View {
|
||||
case SheetView.contacts:
|
||||
ContactsPickerView()
|
||||
case SheetView.inbox:
|
||||
OnboardingTrioView()// test one for now
|
||||
InboxView()// test one for now
|
||||
default:
|
||||
Text("asdf")
|
||||
}
|
||||
|
||||
}
|
||||
.onAppear() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user