fix(main): 팔로잉 커뮤니티 상세로 이동한다

This commit is contained in:
Yu Sung
2026-07-12 05:54:02 +09:00
parent e717a12344
commit ec79e3ce8b
5 changed files with 67 additions and 21 deletions

View File

@@ -9,6 +9,7 @@ struct MainHomeFollowingView: View {
let onTapChatTab: () -> Void
let onTapChatRoom: (Int) -> Void
let onTapSchedule: (CreatorActivityType, Int) -> Void
let onTapCommunityPost: (Int) -> Void
@StateObject private var viewModel = MainHomeFollowingViewModel()
@@ -20,7 +21,8 @@ struct MainHomeFollowingView: View {
onTapFollowingAll: @escaping () -> Void = {},
onTapChatTab: @escaping () -> Void = {},
onTapChatRoom: @escaping (Int) -> Void = { _ in },
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in }
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in },
onTapCommunityPost: @escaping (Int) -> Void = { _ in }
) {
self.onTapLive = onTapLive
self.onTapCreator = onTapCreator
@@ -30,6 +32,7 @@ struct MainHomeFollowingView: View {
self.onTapChatTab = onTapChatTab
self.onTapChatRoom = onTapChatRoom
self.onTapSchedule = onTapSchedule
self.onTapCommunityPost = onTapCommunityPost
}
var body: some View {
@@ -93,7 +96,8 @@ struct MainHomeFollowingView: View {
MainHomeFollowingNewsSection(
recentNews: response.recentNews,
onTapCreator: onTapCreator,
onTapContent: onTapContent
onTapContent: onTapContent,
onTapCommunityPost: onTapCommunityPost
)
.padding(.top, 48)
}