Skip to content

Commit

Permalink
[Refactor/#84] 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
HELLOHIDI committed Sep 3, 2024
1 parent b1201db commit 0de03e3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Created by Seonwoo Kim on 4/12/24.
//

import SwiftUI
import Combine

import Core
Expand Down Expand Up @@ -35,6 +34,8 @@ class MyPageViewModel_Refactor: ObservableObject {
case confirmButtonDidTap
}

//MARK: State

struct State {
var alertType: CustomAlertType
var name: String
Expand All @@ -53,8 +54,10 @@ class MyPageViewModel_Refactor: ObservableObject {

case .logoutButtonDidTap:
state.alertType = .logout

case .withdrawButtonDidTap:
state.alertType = .withdraw

case .confirmButtonDidTap:
state.alertType == .logout ? useCase.logout() : useCase.revokeUser()
}
Expand Down

0 comments on commit 0de03e3

Please sign in to comment.