feat(creator): 커뮤니티 좋아요를 연결한다
This commit is contained in:
@@ -8,6 +8,7 @@ struct CreatorChannelHomeView: View {
|
||||
let onTapDonate: () -> Void
|
||||
let onTapSchedule: (CreatorActivityType, Int) -> Void
|
||||
let onTapSeries: (Int) -> Void
|
||||
let onTapCommunityLike: (Int) -> Void
|
||||
|
||||
init(
|
||||
response: CreatorChannelHomeResponse,
|
||||
@@ -16,7 +17,8 @@ struct CreatorChannelHomeView: View {
|
||||
onTapContent: @escaping (Int) -> Void = { _ in },
|
||||
onTapDonate: @escaping () -> Void = {},
|
||||
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in },
|
||||
onTapSeries: @escaping (Int) -> Void = { _ in }
|
||||
onTapSeries: @escaping (Int) -> Void = { _ in },
|
||||
onTapCommunityLike: @escaping (Int) -> Void = { _ in }
|
||||
) {
|
||||
self.response = response
|
||||
self.onSelectTab = onSelectTab
|
||||
@@ -25,6 +27,7 @@ struct CreatorChannelHomeView: View {
|
||||
self.onTapDonate = onTapDonate
|
||||
self.onTapSchedule = onTapSchedule
|
||||
self.onTapSeries = onTapSeries
|
||||
self.onTapCommunityLike = onTapCommunityLike
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
@@ -66,7 +69,8 @@ struct CreatorChannelHomeView: View {
|
||||
|
||||
CreatorChannelCommunitySection(
|
||||
communities: response.communities,
|
||||
onSelectTab: onSelectTab
|
||||
onSelectTab: onSelectTab,
|
||||
onTapLike: onTapCommunityLike
|
||||
)
|
||||
}
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
|
||||
Reference in New Issue
Block a user