feat(creator): 스케줄 섹션을 연결한다

This commit is contained in:
Yu Sung
2026-07-03 13:59:50 +09:00
parent 610f0eee4b
commit 0775b17fd4
5 changed files with 295 additions and 4 deletions

View File

@@ -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)