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

@@ -303,7 +303,8 @@ struct CreatorChannelView: View {
CreatorChannelCommunityTabView(
creatorId: creatorId,
isOwnCreatorChannel: isOwnCreatorChannel,
viewModel: communityViewModel
viewModel: communityViewModel,
onTapDetail: showCommunityPostDetail
)
} else if viewModel.selectedTab != .home {
CreatorChannelPlaceholderTabView(title: viewModel.selectedTab.title)
@@ -457,6 +458,17 @@ struct CreatorChannelView: View {
)
}
private func showCommunityPostDetail(_ post: CreatorChannelCommunityPostItem) {
AppState.shared.setAppStep(
step: .creatorChannelCommunityPostDetail(
postId: post.postId,
onCommunityRefresh: {
communityViewModel.fetchFirstPage(creatorId: creatorId)
}
)
)
}
private func showAudioContentUpload() {
isCreatorActionMenuPresented = false
AppState.shared.setAppStep(