커뮤니티 수정 UI, API 추가
This commit is contained in:
@@ -125,6 +125,8 @@ struct CreatorCommunityAllItemView_Previews: PreviewProvider {
|
||||
imageUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
|
||||
content: "너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!너무 조하유 앞으로도 좋은 라이브 많이 들려주세요!",
|
||||
date: "3일전",
|
||||
isCommentAvailable: false,
|
||||
isAdult: false,
|
||||
isLike: true,
|
||||
likeCount: 10,
|
||||
commentCount: 0,
|
||||
|
@@ -71,6 +71,15 @@ struct CreatorCommunityAllView: View {
|
||||
isShowing: $viewModel.isShowReportMenu,
|
||||
isShowCreatorMenu: creatorId == UserDefaults.int(forKey: .userId),
|
||||
modifyAction: {
|
||||
let postId = viewModel.postId
|
||||
AppState.shared
|
||||
.setAppStep(
|
||||
step: .creatorCommunityModify(
|
||||
postId: postId,
|
||||
onSuccess: creatorCommunityModifySuccess
|
||||
)
|
||||
)
|
||||
viewModel.postId = 0
|
||||
},
|
||||
deleteAction: {
|
||||
if creatorId == UserDefaults.int(forKey: .userId) {
|
||||
@@ -137,6 +146,10 @@ struct CreatorCommunityAllView: View {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func creatorCommunityModifySuccess() {
|
||||
viewModel.getCommunityPostList()
|
||||
}
|
||||
}
|
||||
|
||||
struct CreatorCommunityAllView_Previews: PreviewProvider {
|
||||
|
Reference in New Issue
Block a user