응원글 삭제 기능 추가
This commit is contained in:
@@ -16,6 +16,7 @@ struct UserProfileFanTalkView: View {
|
||||
let cheers: GetCheersResponse
|
||||
let errorPopup: (String) -> Void
|
||||
let reportPopup: (Int) -> Void
|
||||
let deletePopup: (Int) -> Void
|
||||
|
||||
@Binding var isLoading: Bool
|
||||
@State private var cheersContent: String = ""
|
||||
@@ -97,15 +98,18 @@ struct UserProfileFanTalkView: View {
|
||||
let cheer = viewModel.cheersList[$0]
|
||||
UserProfileFanTalkCheersItemView(
|
||||
userId: userId,
|
||||
cheer: cheer,
|
||||
cheersItem: cheer,
|
||||
writeCheerReply: { cheersReplyContent in
|
||||
viewModel.writeCheersReply(parentCheersId: cheer.cheersId, creatorId: userId, cheersReplyContent: cheersReplyContent)
|
||||
},
|
||||
modifyCheer: { cheersId, cheersReplyContent in
|
||||
viewModel.modifyCheersReply(cheersId: cheersId, creatorId: userId, cheersReplyContent: cheersReplyContent)
|
||||
viewModel.modifyCheers(cheersId: cheersId, creatorId: userId, cheersReplyContent: cheersReplyContent)
|
||||
},
|
||||
reportPopup: { cheersId in
|
||||
reportPopup(cheersId)
|
||||
},
|
||||
onClickDelete: { cheersId in
|
||||
deletePopup(cheersId)
|
||||
}
|
||||
)
|
||||
.onTapGesture {
|
||||
|
Reference in New Issue
Block a user