feat(creator): 커뮤니티 게시글 상세를 연결한다
This commit is contained in:
@@ -4,6 +4,7 @@ struct CreatorChannelCommunityTabView: View {
|
||||
let creatorId: Int
|
||||
let isOwnCreatorChannel: Bool
|
||||
@ObservedObject var viewModel: CreatorChannelCommunityViewModel
|
||||
let onTapDetail: (CreatorChannelCommunityPostItem) -> Void
|
||||
|
||||
private let gridColumns = [
|
||||
GridItem(.flexible(), spacing: 0),
|
||||
@@ -65,14 +66,14 @@ struct CreatorChannelCommunityTabView: View {
|
||||
onTapLike: {
|
||||
viewModel.communityPostLike(postId: post.postId)
|
||||
},
|
||||
onTapComment: {
|
||||
viewModel.openCommentList(post: post)
|
||||
},
|
||||
onTapMore: {
|
||||
viewModel.openReportMenu(post: post)
|
||||
},
|
||||
onTapPurchase: {
|
||||
viewModel.openPurchaseDialog(post: post)
|
||||
},
|
||||
onTapDetail: {
|
||||
onTapDetail(post)
|
||||
}
|
||||
)
|
||||
.onAppear {
|
||||
@@ -96,6 +97,9 @@ struct CreatorChannelCommunityTabView: View {
|
||||
isOwnPost: isOwnPost,
|
||||
onTapPurchase: {
|
||||
viewModel.openPurchaseDialog(post: post)
|
||||
},
|
||||
onTapDetail: {
|
||||
onTapDetail(post)
|
||||
}
|
||||
)
|
||||
.onAppear {
|
||||
|
||||
Reference in New Issue
Block a user