feat(creator): 최신 오디오 섹션을 연결한다

This commit is contained in:
Yu Sung
2026-07-03 03:34:36 +09:00
parent 0e358d73c3
commit f514a7ac40
7 changed files with 235 additions and 4 deletions

View File

@@ -130,7 +130,8 @@ struct CreatorChannelView: View {
} else if let response = viewModel.response {
CreatorChannelHomeView(
response: response,
onSelectTab: selectTab
onSelectTab: selectTab,
onTapContent: showContentDetail
)
} else {
CreatorChannelPlaceholderTabView(title: viewModel.selectedTab.title)
@@ -153,6 +154,10 @@ struct CreatorChannelView: View {
viewModel.selectedTab = tab
}
}
private func showContentDetail(_ contentId: Int) {
AppState.shared.setAppStep(step: .contentDetail(contentId: contentId))
}
}
struct CreatorChannelView_Previews: PreviewProvider {
@@ -175,7 +180,20 @@ struct CreatorChannelView_Previews: PreviewProvider {
isNotify: true
),
currentLive: nil,
latestAudioContent: nil,
latestAudioContent: CreatorChannelAudioContentResponse(
audioContentId: 1,
title: "최신 오디오 콘텐츠 제목",
duration: "1:43:25",
imageUrl: "https://picsum.photos/300/300",
price: 0,
isAdult: false,
isPointAvailable: true,
isFirstContent: true,
seriesName: nil,
isOriginalSeries: nil,
isOwned: false,
isRented: false
),
channelDonations: [],
notices: [],
schedules: [],