fix(main): 추천 커뮤니티 상세로 이동한다
This commit is contained in:
@@ -5,7 +5,7 @@ struct MainHomeRecommendationView: View {
|
||||
let onTapCreator: (Int) -> Void
|
||||
let onTapContent: (Int) -> Void
|
||||
let onTapCharacter: (Int) -> Void
|
||||
let onTapCommunity: (Int) -> Void
|
||||
let onTapCommunityPost: (Int) -> Void
|
||||
let onTapBanner: (RecommendationBannerResponse) -> Void
|
||||
let onTapFollowAll: (@escaping () -> Void) -> Void
|
||||
|
||||
@@ -37,7 +37,7 @@ struct MainHomeRecommendationView: View {
|
||||
items: viewModel.recommendations?.recentlyActiveCreators ?? [],
|
||||
onTapLive: onTapLive,
|
||||
onTapContent: onTapContent,
|
||||
onTapCommunity: onTapCommunity
|
||||
onTapCommunityPost: onTapCommunityPost
|
||||
)
|
||||
|
||||
MainHomeRecentDebutCreatorSection(
|
||||
@@ -79,7 +79,7 @@ struct MainHomeRecommendationView: View {
|
||||
|
||||
MainHomePopularCommunitySection(
|
||||
items: viewModel.recommendations?.popularCommunityPosts ?? [],
|
||||
onTapCommunity: onTapCommunity,
|
||||
onTapCommunityPost: onTapCommunityPost,
|
||||
onTapLike: { postId in
|
||||
viewModel.likeCommunityPost(postId: postId)
|
||||
},
|
||||
@@ -132,7 +132,7 @@ struct MainHomeRecommendationView_Previews: PreviewProvider {
|
||||
onTapCreator: { _ in },
|
||||
onTapContent: { _ in },
|
||||
onTapCharacter: { _ in },
|
||||
onTapCommunity: { _ in },
|
||||
onTapCommunityPost: { _ in },
|
||||
onTapBanner: { _ in },
|
||||
onTapFollowAll: { action in action() }
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user