feat(creator): 커뮤니티 게시글 상세를 연결한다
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user