Skip to content

Commit

Permalink
♻️ :: [#674] 액션 이름 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
youn9k committed Jun 28, 2024
1 parent 0b6ce0f commit 4a26eb9
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ final class MyInfoReactor: Reactor {
case mailNavigationDidTap
case teamNavigationDidTap
case settingNavigationDidTap
case changeUserInfo(UserInfo?)
case changeReadNoticeIDs([Int])
case changedUserInfo(UserInfo?)
case changedReadNoticeIDs([Int])
}

enum Mutation {
Expand Down Expand Up @@ -92,14 +92,14 @@ final class MyInfoReactor: Reactor {
return teamNavigationDidTap()
case .settingNavigationDidTap:
return settingNavigationDidTap()
case let .changeUserInfo(userInfo):
case let .changedUserInfo(userInfo):
return .concat(
updateIsLoggedIn(userInfo),
updateProfileImage(userInfo),
updateNickname(userInfo),
updatePlatform(userInfo)
)
case let .changeReadNoticeIDs(readIDs):
case let .changedReadNoticeIDs(readIDs):
return updateIsAllNoticesRead(readIDs)
}
}
Expand Down Expand Up @@ -139,7 +139,7 @@ private extension MyInfoReactor {
func observeUserInfoChanges() {
PreferenceManager.$userInfo
.bind(with: self) { owner, userInfo in
owner.action.onNext(.changeUserInfo(userInfo))
owner.action.onNext(.changedUserInfo(userInfo))
}
.disposed(by: disposeBag)
}
Expand All @@ -148,7 +148,7 @@ private extension MyInfoReactor {
PreferenceManager.$ignoredPopupIDs
.map { $0 ?? [] }
.bind(with: self) { owner, readIDs in
owner.action.onNext(.changeReadNoticeIDs(readIDs))
owner.action.onNext(.changedReadNoticeIDs(readIDs))
}
.disposed(by: disposeBag)
}
Expand Down

0 comments on commit 4a26eb9

Please sign in to comment.