feat(creator): 최신 오디오 섹션을 연결한다
This commit is contained in:
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user