feat(creator-channel): 홈 빈 상태 동작을 보강한다
This commit is contained in:
@@ -7,6 +7,7 @@ struct CreatorChannelHomeView: View {
|
||||
let onTapLive: (Int) -> Void
|
||||
let onTapContent: (Int) -> Void
|
||||
let onTapDonate: () -> Void
|
||||
let onTapFanTalkWrite: () -> Void
|
||||
let onTapSchedule: (CreatorActivityType, Int) -> Void
|
||||
let onTapSeries: (Int) -> Void
|
||||
let onTapCommunityLike: (Int) -> Void
|
||||
@@ -20,6 +21,7 @@ struct CreatorChannelHomeView: View {
|
||||
onTapLive: @escaping (Int) -> Void = { _ in },
|
||||
onTapContent: @escaping (Int) -> Void = { _ in },
|
||||
onTapDonate: @escaping () -> Void = {},
|
||||
onTapFanTalkWrite: @escaping () -> Void = {},
|
||||
onTapSchedule: @escaping (CreatorActivityType, Int) -> Void = { _, _ in },
|
||||
onTapSeries: @escaping (Int) -> Void = { _ in },
|
||||
onTapCommunityLike: @escaping (Int) -> Void = { _ in },
|
||||
@@ -32,6 +34,7 @@ struct CreatorChannelHomeView: View {
|
||||
self.onTapLive = onTapLive
|
||||
self.onTapContent = onTapContent
|
||||
self.onTapDonate = onTapDonate
|
||||
self.onTapFanTalkWrite = onTapFanTalkWrite
|
||||
self.onTapSchedule = onTapSchedule
|
||||
self.onTapSeries = onTapSeries
|
||||
self.onTapCommunityLike = onTapCommunityLike
|
||||
@@ -90,7 +93,9 @@ struct CreatorChannelHomeView: View {
|
||||
|
||||
CreatorChannelFanTalkSection(
|
||||
fanTalk: response.fanTalk,
|
||||
onSelectTab: onSelectTab
|
||||
showsWriteButton: isOwnCreatorChannel == false,
|
||||
onSelectTab: onSelectTab,
|
||||
onTapWrite: onTapFanTalkWrite
|
||||
)
|
||||
|
||||
CreatorChannelIntroduceSection(introduce: response.introduce)
|
||||
|
||||
Reference in New Issue
Block a user