feat(creator): 팬Talk 답글 상세를 연결한다

This commit is contained in:
Yu Sung
2026-07-07 15:04:34 +09:00
parent 2283ea4b44
commit 75aa99768e
3 changed files with 24 additions and 1 deletions

View File

@@ -292,7 +292,8 @@ struct CreatorChannelView: View {
isOwnCreatorChannel: isOwnCreatorChannel,
viewModel: fanTalkViewModel,
onTapWrite: showFanTalkWriteView,
onTapEdit: showFanTalkModifyView
onTapEdit: showFanTalkModifyView,
onTapDetail: showFanTalkReplyDetail
)
} else if viewModel.selectedTab == .community {
CreatorChannelCommunityTabView(
@@ -629,6 +630,19 @@ struct CreatorChannelView: View {
)
)
}
private func showFanTalkReplyDetail(_ fanTalk: CreatorChannelFanTalkItemResponse) {
guard isOwnCreatorChannel else { return }
AppState.shared.setAppStep(
step: .creatorChannelReplyDetail(
context: .fanTalk(creatorId: creatorId, parentFanTalk: fanTalk),
onFanTalkRefresh: {
fanTalkViewModel.fetchFirstPage(creatorId: creatorId)
}
)
)
}
}
struct CreatorChannelView_Previews: PreviewProvider {