@@ -49,7 +49,6 @@ struct MainView: View {
4949 } else if newValue == . today {
5050 todayViewCoordinator. fetchData ( )
5151 } else if newValue == . notification {
52- coordinator. fetchData ( )
5352 } else if newValue == . profile {
5453 profileViewCoordinator. fetchData ( )
5554 }
@@ -126,17 +125,11 @@ struct MainView: View {
126125 mainSidebar
127126 } content: {
128127 PushNotificationListView (
129- viewModel: coordinator. pushNotificationListViewModel,
130- todoIdToPresent: todoIdToPresent,
131128 isCompactLayout: isCompactLayout
132129 )
133130 } detail: {
134131 Group {
135- if let todoId = coordinator. todoIdToPresent? . id {
136132 TodoDetailView (
137- viewModel: coordinator. todoDetailViewModel (
138- todoId: todoId,
139- showEditButton: false
140133 )
141134 )
142135 . id( todoId)
@@ -326,8 +319,6 @@ struct MainView: View {
326319
327320 private var notificationView : some View {
328321 PushNotificationListView (
329- viewModel: coordinator. pushNotificationListViewModel,
330- todoIdToPresent: todoIdToPresent,
331322 isCompactLayout: isCompactLayout
332323 )
333324 }
@@ -360,13 +351,6 @@ private extension MainView {
360351 )
361352 }
362353
363- var todoIdToPresent : Binding < TodoIdItem ? > {
364- Binding (
365- get: { coordinator. todoIdToPresent } ,
366- set: { coordinator. todoIdToPresent = $0 }
367- )
368- }
369-
370354 var homeNavigationPath : Binding < [ HomeRoute ] > {
371355 Binding (
372356 get: { homeViewCoordinator. router. path } ,
0 commit comments