feat(home): 팔로잉 크리에이터 탭을 연결한다
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
import SwiftUI
|
||||
|
||||
struct MainHomeFollowingView: View {
|
||||
let onTapCreator: (Int) -> Void
|
||||
let onTapFollowingAll: () -> Void
|
||||
|
||||
@StateObject private var viewModel = MainHomeFollowingViewModel()
|
||||
|
||||
init(onTapFollowingAll: @escaping () -> Void = {}) {
|
||||
init(
|
||||
onTapCreator: @escaping (Int) -> Void = { _ in },
|
||||
onTapFollowingAll: @escaping () -> Void = {}
|
||||
) {
|
||||
self.onTapCreator = onTapCreator
|
||||
self.onTapFollowingAll = onTapFollowingAll
|
||||
}
|
||||
|
||||
@@ -13,6 +18,7 @@ struct MainHomeFollowingView: View {
|
||||
VStack(spacing: 0) {
|
||||
MainHomeFollowingCreatorSection(
|
||||
followingCreators: viewModel.response?.followingCreators ?? [],
|
||||
onTapCreator: onTapCreator,
|
||||
onTapAll: onTapFollowingAll
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user