@@ -16,7 +16,6 @@ public struct RootView: View {
1616 @State var viewModel : RootViewModel
1717 @State private var selectedRoute : Route ?
1818 @State private var selectedMainTab = MainTab . home
19- private let loginStore : StoreOf < LoginFeature >
2019 private let widgetURLTab : ( URL ) -> MainTab ?
2120 private let windowEvent : TodoEditorWindowEvent
2221 private let pushNotificationTodoIdPublisher : AnyPublisher < String , Never >
@@ -27,7 +26,6 @@ public struct RootView: View {
2726 networkConnectivityUseCase: ObserveNetworkConnectivityUseCase ,
2827 systemThemeUseCase: ObserveSystemThemeUseCase ,
2928 trackAnalyticsEventUseCase: TrackAnalyticsEventUseCase ,
30- signInUseCase: SignInUseCase ,
3129 widgetURLTab: @escaping ( URL ) -> MainTab ? ,
3230 windowEvent: TodoEditorWindowEvent ,
3331 pushNotificationTodoIdPublisher: AnyPublisher < String , Never > ,
@@ -39,13 +37,6 @@ public struct RootView: View {
3937 systemThemeUseCase: systemThemeUseCase,
4038 trackAnalyticsEventUseCase: trackAnalyticsEventUseCase
4139 ) )
42- self . loginStore = Store (
43- initialState: LoginFeature . State ( )
44- ) {
45- LoginFeature ( )
46- } withDependencies: {
47- $0. signInUseCase = . live( signInUseCase)
48- }
4940 self . widgetURLTab = widgetURLTab
5041 self . windowEvent = windowEvent
5142 self . pushNotificationTodoIdPublisher = pushNotificationTodoIdPublisher
@@ -63,7 +54,7 @@ public struct RootView: View {
6354 selectedTab: $selectedMainTab
6455 )
6556 } else {
66- LoginView ( store : loginStore )
57+ LoginView ( signInUseCase : container . resolve ( SignInUseCase . self ) )
6758 }
6859 }
6960 }
0 commit comments