feat(main): 라이브 전체 진입을 추가한다
This commit is contained in:
@@ -7,6 +7,7 @@ struct MainHomeRecommendationView: View {
|
||||
let onTapCharacter: (Int) -> Void
|
||||
let onTapCommunityPost: (Int) -> Void
|
||||
let onTapBanner: (RecommendationBannerResponse) -> Void
|
||||
let onTapLiveAll: () -> Void
|
||||
let onTapFollowAll: (@escaping () -> Void) -> Void
|
||||
|
||||
@StateObject private var viewModel = MainHomeRecommendationViewModel()
|
||||
@@ -25,7 +26,8 @@ struct MainHomeRecommendationView: View {
|
||||
VStack(alignment: .leading, spacing: SodaSpacing.s24) {
|
||||
MainHomeLiveSection(
|
||||
items: viewModel.recommendations?.lives ?? [],
|
||||
onTapLive: onTapLive
|
||||
onTapLive: onTapLive,
|
||||
onTapAll: onTapLiveAll
|
||||
)
|
||||
|
||||
MainHomeBannerSection(
|
||||
@@ -122,6 +124,7 @@ struct MainHomeRecommendationView_Previews: PreviewProvider {
|
||||
onTapCharacter: { _ in },
|
||||
onTapCommunityPost: { _ in },
|
||||
onTapBanner: { _ in },
|
||||
onTapLiveAll: {},
|
||||
onTapFollowAll: { action in action() }
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user