Skip to content

Commit

Permalink
[IDLE-515] 요양보호사 알람화면 네비게이션 로직설정
Browse files Browse the repository at this point in the history
  • Loading branch information
J0onYEong committed Nov 13, 2024
1 parent a0c50bf commit 12d09f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ extension AppCoordinator {
coordinator.startFlow = { [weak self] destination in
guard let self else { return }
switch destination {
case .notificationPage:
userNotifications()
case .accountDeregisterPage:
accountDeregister(userType: .worker)
case .authFlow:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public enum WorkerMainPageCoordinatorDestination {
case authFlow
case myProfilePage
case accountDeregisterPage
case notificationPage
}

public class WorkerMainPageCoordinator: BaseCoordinator {
Expand Down Expand Up @@ -86,6 +87,9 @@ public extension WorkerMainPageCoordinator {
func presentPostBoardPage(controller: UINavigationController) {

let viewModel = MainPostBoardViewModel()
viewModel.presentNotificationPage = { [weak self] in
self?.startFlow(.notificationPage)
}
viewModel.presentMyProfile = { [weak self] in
self?.startFlow(.myProfilePage)
}
Expand Down

0 comments on commit 12d09f4

Please sign in to comment.