feat(creator): 팔로워 목록 이동을 연결한다
This commit is contained in:
@@ -4,6 +4,7 @@ import Kingfisher
|
||||
struct CreatorChannelHeaderSection: View {
|
||||
let creator: CreatorChannelCreatorResponse
|
||||
let isOwnCreatorChannel: Bool
|
||||
let onTapFollowerCount: () -> Void
|
||||
let onTapTalk: () -> Void
|
||||
let onTapDm: () -> Void
|
||||
|
||||
@@ -46,6 +47,7 @@ struct CreatorChannelHeaderSection: View {
|
||||
.appFont(size: 16, weight: .medium)
|
||||
.foregroundColor(.white)
|
||||
.multilineTextAlignment(.center)
|
||||
.onTapGesture(perform: onTapFollowerCount)
|
||||
|
||||
Text(creator.nickname)
|
||||
.appFont(size: 32, weight: .bold)
|
||||
|
||||
@@ -237,6 +237,11 @@ struct CreatorChannelView: View {
|
||||
CreatorChannelHeaderSection(
|
||||
creator: creator,
|
||||
isOwnCreatorChannel: isOwnCreatorChannel,
|
||||
onTapFollowerCount: {
|
||||
if isOwnCreatorChannel {
|
||||
AppState.shared.setAppStep(step: .followerList(userId: creator.creatorId))
|
||||
}
|
||||
},
|
||||
onTapTalk: handleTalkTap,
|
||||
onTapDm: handleDmTap
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user