fix(creator): 팬Talk 액션 팝업을 정리한다
This commit is contained in:
@@ -156,6 +156,10 @@ struct CreatorChannelView: View {
|
||||
authConfirmDialog
|
||||
}
|
||||
|
||||
if viewModel.selectedTab == .fanTalk && fanTalkViewModel.isShowDeleteDialog {
|
||||
fanTalkDeleteDialog
|
||||
}
|
||||
|
||||
if isShowChannelDonationDialog {
|
||||
LiveRoomDonationDialogView(
|
||||
isShowing: $isShowChannelDonationDialog,
|
||||
@@ -338,6 +342,30 @@ struct CreatorChannelView: View {
|
||||
)
|
||||
}
|
||||
|
||||
private var fanTalkDeleteDialog: some View {
|
||||
SodaV2ActionModal(
|
||||
title: I18n.MemberChannel.cheersDeleteTitle,
|
||||
message: I18n.Common.confirmDeleteQuestion,
|
||||
button1: SodaV2ActionModalButton(
|
||||
label: I18n.Common.delete,
|
||||
action: {
|
||||
fanTalkViewModel.isShowDeleteDialog = false
|
||||
fanTalkViewModel.deleteSelectedFanTalk(creatorId: creatorId)
|
||||
}
|
||||
),
|
||||
button2: SodaV2ActionModalButton(
|
||||
label: I18n.Common.cancel,
|
||||
action: dismissFanTalkDeleteDialog
|
||||
),
|
||||
onDimmedTap: dismissFanTalkDeleteDialog
|
||||
)
|
||||
}
|
||||
|
||||
private func dismissFanTalkDeleteDialog() {
|
||||
fanTalkViewModel.isShowDeleteDialog = false
|
||||
fanTalkViewModel.selectedFanTalkId = 0
|
||||
}
|
||||
|
||||
private var authView: some View {
|
||||
BootpayUI(payload: payload, requestType: BootpayRequest.TYPE_AUTHENTICATION)
|
||||
.onConfirm { _ in true }
|
||||
|
||||
Reference in New Issue
Block a user