fix(main): 팔로잉 커뮤니티 상세로 이동한다
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user