fix(main): 추천 커뮤니티 상세로 이동한다
This commit is contained in:
@@ -4,18 +4,18 @@ struct MainHomeActiveCreatorSection: View {
|
||||
let items: [HomeActiveCreatorItem]
|
||||
let onTapLive: (Int) -> Void
|
||||
let onTapContent: (Int) -> Void
|
||||
let onTapCommunity: (Int) -> Void
|
||||
let onTapCommunityPost: (Int) -> Void
|
||||
|
||||
init(
|
||||
items: [HomeActiveCreatorItem],
|
||||
onTapLive: @escaping (Int) -> Void = { _ in },
|
||||
onTapContent: @escaping (Int) -> Void = { _ in },
|
||||
onTapCommunity: @escaping (Int) -> Void = { _ in }
|
||||
onTapCommunityPost: @escaping (Int) -> Void = { _ in }
|
||||
) {
|
||||
self.items = items
|
||||
self.onTapLive = onTapLive
|
||||
self.onTapContent = onTapContent
|
||||
self.onTapCommunity = onTapCommunity
|
||||
self.onTapCommunityPost = onTapCommunityPost
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
@@ -46,7 +46,7 @@ struct MainHomeActiveCreatorSection: View {
|
||||
case .audio:
|
||||
onTapContent(targetId)
|
||||
case .community:
|
||||
onTapCommunity(targetId)
|
||||
onTapCommunityPost(targetId)
|
||||
case .unknown:
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user