mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Pass router to each tab in the content view
This commit is contained in:
parent
a190e03135
commit
83fa9a73f6
2 changed files with 4 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ struct Connect: View {
|
|||
|
||||
@Environment(\.managedObjectContext) var context
|
||||
@EnvironmentObject var bleManager: BLEManager
|
||||
@ObservedObject var router: Router
|
||||
@State var node: NodeInfoEntity?
|
||||
@State var isUnsetRegion = false
|
||||
@State var invalidFirmwareVersion = false
|
||||
|
|
|
|||
|
|
@ -29,7 +29,9 @@ struct ContentView: View {
|
|||
.tag(NavigationState.Tab.messages)
|
||||
.badge(appState.totalUnreadMessages)
|
||||
|
||||
Connect()
|
||||
Connect(
|
||||
router: appState.router
|
||||
)
|
||||
.tabItem {
|
||||
Label("Bluetooth", systemImage: "antenna.radiowaves.left.and.right")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue