feat(creator): 시리즈 섹션을 연결한다
This commit is contained in:
@@ -7,6 +7,7 @@ struct CreatorChannelHomeView: View {
|
||||
let onTapContent: (Int) -> Void
|
||||
let onTapDonate: () -> Void
|
||||
let onTapSchedule: (CreatorActivityType, Int) -> Void
|
||||
let onTapSeries: (Int) -> Void
|
||||
|
||||
init(
|
||||
response: CreatorChannelHomeResponse,
|
||||
@@ -14,7 +15,8 @@ struct CreatorChannelHomeView: View {
|
||||
onTapLive: @escaping (Int) -> Void = { _ in },
|
||||
onTapContent: @escaping (Int) -> Void = { _ in },
|
||||
onTapDonate: @escaping () -> Void = {},
|
||||
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in }
|
||||
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in },
|
||||
onTapSeries: @escaping (Int) -> Void = { _ in }
|
||||
) {
|
||||
self.response = response
|
||||
self.onSelectTab = onSelectTab
|
||||
@@ -22,6 +24,7 @@ struct CreatorChannelHomeView: View {
|
||||
self.onTapContent = onTapContent
|
||||
self.onTapDonate = onTapDonate
|
||||
self.onTapSchedule = onTapSchedule
|
||||
self.onTapSeries = onTapSeries
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
@@ -54,6 +57,12 @@ struct CreatorChannelHomeView: View {
|
||||
onSelectTab: onSelectTab,
|
||||
onTapContent: onTapContent
|
||||
)
|
||||
|
||||
CreatorChannelSeriesSection(
|
||||
series: response.series,
|
||||
onSelectTab: onSelectTab,
|
||||
onTapSeries: onTapSeries
|
||||
)
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.background(Color.black)
|
||||
|
||||
Reference in New Issue
Block a user