feat(creator): 커뮤니티 게시글 상세를 연결한다

This commit is contained in:
Yu Sung
2026-07-08 01:56:57 +09:00
parent f2d589eca2
commit c0369e6f58
23 changed files with 2187 additions and 138 deletions

View File

@@ -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 {