diff --git a/Soomsil-USaint/Application/AppReducer.swift b/Soomsil-USaint/Application/AppReducer.swift index 1999747..0a3ad8c 100644 --- a/Soomsil-USaint/Application/AppReducer.swift +++ b/Soomsil-USaint/Application/AppReducer.swift @@ -66,7 +66,7 @@ struct AppReducer { case .login(.loginResponse(.success(let (info, report)))): state = .loggedIn(HomeReducer.State(studentInfo: info, totalReportCard: report)) return .none - case .home(.path(.element(id: _, action: .setting(.alert(.presented(.logout)))))): + case .home(.path(.element(id: _, action: .setting(.alert(.presented(.confirmLogoutTapped)))))): state = .loggedOut(LoginReducer.State()) return .none default: diff --git a/Soomsil-USaint/Application/Feature/Setting/Core/SettingReducer.swift b/Soomsil-USaint/Application/Feature/Setting/Core/SettingReducer.swift index 6a8371e..b8506a8 100644 --- a/Soomsil-USaint/Application/Feature/Setting/Core/SettingReducer.swift +++ b/Soomsil-USaint/Application/Feature/Setting/Core/SettingReducer.swift @@ -29,8 +29,8 @@ struct SettingReducer { case alert(PresentationAction) enum Alert: Equatable { - case logout - case configurePushAuthorization + case confirmLogoutTapped + case configurePushAuthorizationTapped } } @@ -46,7 +46,7 @@ struct SettingReducer { } actions: { ButtonState( role: .destructive, - action: .logout) { + action: .confirmLogoutTapped) { TextState("로그아웃") } ButtonState( @@ -55,7 +55,7 @@ struct SettingReducer { } } return .none - case .alert(.presented(.logout)): + case .alert(.presented(.confirmLogoutTapped)): YDSToast("로그아웃 완료", haptic: .success) return .none case .togglePushAuthorization(true): @@ -75,7 +75,7 @@ struct SettingReducer { } actions: { ButtonState( role: .destructive, - action: .configurePushAuthorization + action: .configurePushAuthorizationTapped ) { TextState("설정") } @@ -101,7 +101,7 @@ struct SettingReducer { } } return .none - case .alert(.presented(.configurePushAuthorization)): + case .alert(.presented(.configurePushAuthorizationTapped)): debugPrint("alert permission") return .run { send in await send(.requestPushAuthorizationResponse(Result {