feat(creator): 스케줄 섹션을 연결한다
This commit is contained in:
@@ -6,19 +6,22 @@ struct CreatorChannelHomeView: View {
|
||||
let onTapLive: (Int) -> Void
|
||||
let onTapContent: (Int) -> Void
|
||||
let onTapDonate: () -> Void
|
||||
let onTapSchedule: (CreatorActivityType, Int) -> Void
|
||||
|
||||
init(
|
||||
response: CreatorChannelHomeResponse,
|
||||
onSelectTab: @escaping (CreatorChannelTab) -> Void,
|
||||
onTapLive: @escaping (Int) -> Void = { _ in },
|
||||
onTapContent: @escaping (Int) -> Void = { _ in },
|
||||
onTapDonate: @escaping () -> Void = {}
|
||||
onTapDonate: @escaping () -> Void = {},
|
||||
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in }
|
||||
) {
|
||||
self.response = response
|
||||
self.onSelectTab = onSelectTab
|
||||
self.onTapLive = onTapLive
|
||||
self.onTapContent = onTapContent
|
||||
self.onTapDonate = onTapDonate
|
||||
self.onTapSchedule = onTapSchedule
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
@@ -40,6 +43,11 @@ struct CreatorChannelHomeView: View {
|
||||
)
|
||||
|
||||
CreatorChannelNoticeSection(notices: response.notices)
|
||||
|
||||
CreatorChannelScheduleSection(
|
||||
schedules: response.schedules,
|
||||
onTapSchedule: onTapSchedule
|
||||
)
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.background(Color.black)
|
||||
|
||||
Reference in New Issue
Block a user