Skip to content

Commit

Permalink
REFACT :: [#318] navBar 수정 및 로그 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
cyj513 committed May 8, 2024
1 parent 90cda09 commit f687726
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ import RxFlow
import DSKit
import Core

import MGLogger

final public class SelfCareProfileViewController: BaseViewController<SelfCareProfileViewModel>, Stepper {

private lazy var navBar = SelfCareProfileNavigationBar()
private lazy var navBar = SelfCareProfileNavigationBar(leftText: "내 프로필")

private lazy var userProfileImageView = MGProfileView(
profileImage: MGProfileImage(
Expand Down Expand Up @@ -53,17 +55,21 @@ final public class SelfCareProfileViewController: BaseViewController<SelfCarePro
}).disposed(by: disposeBag)

logOutButton.rx.tap
.bind(onNext: { [weak self] in
self?.showCaveatPopUp(
.asObservable()
.withUnretained(self)
.subscribe(onNext: { owner, _ in
owner.showCaveatPopUp(
title: "로그아웃",
message: "로그아웃 하실건가요?",
leftActionTitle: "취소",
rightActionTitle: "확인",
leftActionCompletion: { },
leftActionCompletion: {
MGLogger.debug("leftButtonClick")
},
rightActionCompletion: { }
)
MGLogger.debug("logOutButton")
}).disposed(by: disposeBag)

withdrawalButton.rx.tap
.bind(onNext: { [weak self] in
self?.showCaveatPopUp(
Expand Down

0 comments on commit f687726

Please sign in to comment.