refactor(v2): 액션 모달로 전환한다
This commit is contained in:
@@ -282,31 +282,42 @@ struct MainView: View {
|
||||
}
|
||||
|
||||
private var authConfirmDialog: some View {
|
||||
SodaDialog(
|
||||
SodaV2ActionModal(
|
||||
title: I18n.Main.Auth.dialogTitle,
|
||||
desc: I18n.Main.Auth.liveEntryVerificationDescription,
|
||||
confirmButtonTitle: I18n.Main.Auth.goToVerification,
|
||||
confirmButtonAction: {
|
||||
isShowAuthConfirmView = false
|
||||
isShowAuthView = true
|
||||
},
|
||||
cancelButtonTitle: I18n.Common.cancel,
|
||||
cancelButtonAction: {
|
||||
isShowAuthConfirmView = false
|
||||
pendingAction = nil
|
||||
},
|
||||
textAlignment: .center
|
||||
message: I18n.Main.Auth.liveEntryVerificationDescription,
|
||||
button1: SodaV2ActionModalButton(
|
||||
label: I18n.Main.Auth.goToVerification,
|
||||
action: {
|
||||
isShowAuthConfirmView = false
|
||||
isShowAuthView = true
|
||||
}
|
||||
),
|
||||
button2: SodaV2ActionModalButton(
|
||||
label: I18n.Common.cancel,
|
||||
action: dismissAuthConfirmDialog
|
||||
),
|
||||
onDimmedTap: dismissAuthConfirmDialog
|
||||
)
|
||||
}
|
||||
|
||||
private func dismissAuthConfirmDialog() {
|
||||
isShowAuthConfirmView = false
|
||||
pendingAction = nil
|
||||
}
|
||||
|
||||
private var leaveLiveNavigationDialog: some View {
|
||||
SodaDialog(
|
||||
SodaV2ActionModal(
|
||||
title: I18n.Common.alertTitle,
|
||||
desc: I18n.LiveRoom.leaveLiveForNavigationDesc,
|
||||
confirmButtonTitle: I18n.Common.confirm,
|
||||
confirmButtonAction: { confirmExternalNavigation() },
|
||||
cancelButtonTitle: I18n.Common.cancel,
|
||||
cancelButtonAction: { cancelExternalNavigation() }
|
||||
message: I18n.LiveRoom.leaveLiveForNavigationDesc,
|
||||
button1: SodaV2ActionModalButton(
|
||||
label: I18n.Common.confirm,
|
||||
action: confirmExternalNavigation
|
||||
),
|
||||
button2: SodaV2ActionModalButton(
|
||||
label: I18n.Common.cancel,
|
||||
action: cancelExternalNavigation
|
||||
),
|
||||
onDimmedTap: cancelExternalNavigation
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user