feat(creator): 커뮤니티 좋아요를 연결한다

This commit is contained in:
Yu Sung
2026-07-03 16:10:10 +09:00
parent aa735b7053
commit 884952db5a
3 changed files with 28 additions and 3 deletions

View File

@@ -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)