feat(creator): 커뮤니티 아이템 표시를 통일한다
This commit is contained in:
@@ -2,6 +2,7 @@ import SwiftUI
|
||||
|
||||
struct CreatorChannelHomeView: View {
|
||||
let response: CreatorChannelHomeResponse
|
||||
let isOwnCreatorChannel: Bool
|
||||
let onSelectTab: (CreatorChannelTab) -> Void
|
||||
let onTapLive: (Int) -> Void
|
||||
let onTapContent: (Int) -> Void
|
||||
@@ -9,18 +10,24 @@ struct CreatorChannelHomeView: View {
|
||||
let onTapSchedule: (CreatorActivityType, Int) -> Void
|
||||
let onTapSeries: (Int) -> Void
|
||||
let onTapCommunityLike: (Int) -> Void
|
||||
let onTapCommunityMore: (CreatorChannelCommunityPostItem) -> Void
|
||||
let onTapCommunityDetail: (Int) -> Void
|
||||
|
||||
init(
|
||||
response: CreatorChannelHomeResponse,
|
||||
isOwnCreatorChannel: Bool,
|
||||
onSelectTab: @escaping (CreatorChannelTab) -> Void,
|
||||
onTapLive: @escaping (Int) -> Void = { _ in },
|
||||
onTapContent: @escaping (Int) -> Void = { _ in },
|
||||
onTapDonate: @escaping () -> Void = {},
|
||||
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in },
|
||||
onTapSeries: @escaping (Int) -> Void = { _ in },
|
||||
onTapCommunityLike: @escaping (Int) -> Void = { _ in }
|
||||
onTapCommunityLike: @escaping (Int) -> Void = { _ in },
|
||||
onTapCommunityMore: @escaping (CreatorChannelCommunityPostItem) -> Void = { _ in },
|
||||
onTapCommunityDetail: @escaping (Int) -> Void = { _ in }
|
||||
) {
|
||||
self.response = response
|
||||
self.isOwnCreatorChannel = isOwnCreatorChannel
|
||||
self.onSelectTab = onSelectTab
|
||||
self.onTapLive = onTapLive
|
||||
self.onTapContent = onTapContent
|
||||
@@ -28,6 +35,8 @@ struct CreatorChannelHomeView: View {
|
||||
self.onTapSchedule = onTapSchedule
|
||||
self.onTapSeries = onTapSeries
|
||||
self.onTapCommunityLike = onTapCommunityLike
|
||||
self.onTapCommunityMore = onTapCommunityMore
|
||||
self.onTapCommunityDetail = onTapCommunityDetail
|
||||
}
|
||||
|
||||
var body: some View {
|
||||
@@ -69,8 +78,11 @@ struct CreatorChannelHomeView: View {
|
||||
|
||||
CreatorChannelCommunitySection(
|
||||
communities: response.communities,
|
||||
isOwnCreatorChannel: isOwnCreatorChannel,
|
||||
onSelectTab: onSelectTab,
|
||||
onTapLike: onTapCommunityLike
|
||||
onTapLike: onTapCommunityLike,
|
||||
onTapMore: onTapCommunityMore,
|
||||
onTapDetail: onTapCommunityDetail
|
||||
)
|
||||
|
||||
CreatorChannelFanTalkSection(
|
||||
|
||||
Reference in New Issue
Block a user