fix(creator): 팬Talk 액션 팝업을 정리한다
This commit is contained in:
@@ -45,17 +45,18 @@ struct CreatorChannelReplyDetailView: View {
|
||||
}
|
||||
|
||||
if viewModel.isShowDeleteDialog {
|
||||
SodaDialog(
|
||||
SodaV2ActionModal(
|
||||
title: I18n.Common.commentDeleteTitle,
|
||||
desc: I18n.Common.confirmDeleteQuestion,
|
||||
confirmButtonTitle: I18n.Common.delete,
|
||||
confirmButtonAction: viewModel.confirmDelete,
|
||||
cancelButtonTitle: I18n.Common.cancel,
|
||||
cancelButtonAction: {
|
||||
viewModel.isShowDeleteDialog = false
|
||||
viewModel.deletingItem = nil
|
||||
},
|
||||
textAlignment: .center
|
||||
message: I18n.Common.confirmDeleteQuestion,
|
||||
button1: SodaV2ActionModalButton(
|
||||
label: I18n.Common.delete,
|
||||
action: viewModel.confirmDelete
|
||||
),
|
||||
button2: SodaV2ActionModalButton(
|
||||
label: I18n.Common.cancel,
|
||||
action: dismissDeleteDialog
|
||||
),
|
||||
onDimmedTap: dismissDeleteDialog
|
||||
)
|
||||
}
|
||||
}
|
||||
@@ -65,4 +66,9 @@ struct CreatorChannelReplyDetailView: View {
|
||||
}
|
||||
.sodaToast(isPresented: $viewModel.isShowPopup, message: viewModel.errorMessage, autohideIn: 1)
|
||||
}
|
||||
|
||||
private func dismissDeleteDialog() {
|
||||
viewModel.isShowDeleteDialog = false
|
||||
viewModel.deletingItem = nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user