|
|
@@ -28,7 +28,10 @@ final class MainCoordinator: BaseCoordinator {
|
|
|
showProductModule(with: id)
|
|
|
case .cart:
|
|
|
showCartModule()
|
|
|
- default: EmptyView()
|
|
|
+ case .feedback:
|
|
|
+ showFeedbackModule()
|
|
|
+ default:
|
|
|
+ fatalError("This should not happen!")
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -45,6 +48,9 @@ final class MainCoordinator: BaseCoordinator {
|
|
|
},
|
|
|
onCart: { [weak self] in
|
|
|
self?.currentRouter.push(Route.cart)
|
|
|
+ },
|
|
|
+ onFeedback: { [weak self] in
|
|
|
+ self?.currentRouter.push(Route.feedback)
|
|
|
}
|
|
|
)
|
|
|
)
|
|
|
@@ -86,4 +92,8 @@ final class MainCoordinator: BaseCoordinator {
|
|
|
)
|
|
|
)
|
|
|
}
|
|
|
+
|
|
|
+ private func showFeedbackModule() -> some View {
|
|
|
+ FeedbackBuilder().build(with: .init())
|
|
|
+ }
|
|
|
}
|