feat(home): 팔로잉 스케줄 섹션을 추가한다
This commit is contained in:
@@ -6,6 +6,7 @@ struct MainHomeFollowingView: View {
|
||||
let onTapFollowingAll: () -> Void
|
||||
let onTapChatTab: () -> Void
|
||||
let onTapChatRoom: (Int) -> Void
|
||||
let onTapSchedule: (CreatorActivityType, Int) -> Void
|
||||
|
||||
@StateObject private var viewModel = MainHomeFollowingViewModel()
|
||||
|
||||
@@ -14,13 +15,15 @@ struct MainHomeFollowingView: View {
|
||||
onTapCreator: @escaping (Int) -> Void = { _ in },
|
||||
onTapFollowingAll: @escaping () -> Void = {},
|
||||
onTapChatTab: @escaping () -> Void = {},
|
||||
onTapChatRoom: @escaping (Int) -> Void = { _ in }
|
||||
onTapChatRoom: @escaping (Int) -> Void = { _ in },
|
||||
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in }
|
||||
) {
|
||||
self.onTapLive = onTapLive
|
||||
self.onTapCreator = onTapCreator
|
||||
self.onTapFollowingAll = onTapFollowingAll
|
||||
self.onTapChatTab = onTapChatTab
|
||||
self.onTapChatRoom = onTapChatRoom
|
||||
self.onTapSchedule = onTapSchedule
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
@@ -44,6 +47,13 @@ struct MainHomeFollowingView: View {
|
||||
)
|
||||
}
|
||||
|
||||
if let monthlySchedules = viewModel.response?.monthlySchedules, !monthlySchedules.isEmpty {
|
||||
MainHomeFollowingScheduleSection(
|
||||
monthlySchedules: monthlySchedules,
|
||||
onTapSchedule: onTapSchedule
|
||||
)
|
||||
}
|
||||
|
||||
MainPlaceholderTabView(title: "팔로잉")
|
||||
}
|
||||
.onAppear {
|
||||
|
||||
Reference in New Issue
Block a user