오디션 상세

- 지원리스트에서 유저 프로필을 누르면 채널로 이동
This commit is contained in:
Yu Sung 2025-01-08 16:21:29 +09:00
parent ca7a2d4c72
commit b5b53f95c7
4 changed files with 166 additions and 152 deletions

View File

@ -36,12 +36,18 @@ struct AuditionApplicantItemView: View {
)
}
}
.onTapGesture {
AppState.shared.setAppStep(step: .creatorDetail(userId: item.memberId))
}
VStack(spacing: 8) {
HStack(spacing: 0) {
Text(item.nickname.count > 9 ? "\(item.nickname.prefix(9))..." : item.nickname)
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color.white)
.onTapGesture {
AppState.shared.setAppStep(step: .creatorDetail(userId: item.memberId))
}
Spacer()

View File

@ -19,6 +19,7 @@ struct GetCreatorProfileResponse: Decodable {
let activitySummary: GetCreatorActivitySummary
let seriesList: [SeriesListItem]
let isBlock: Bool
let isCreatorRole: Bool
}
struct CreatorResponse: Decodable {

View File

@ -11,6 +11,7 @@ import Kingfisher
struct UserProfileCreatorView: View {
let creator: CreatorResponse
let isCreator: Bool
let creatorFollow: () -> Void
let showCreatorFollowNotifyDialog: () -> Void
@ -42,11 +43,13 @@ struct UserProfileCreatorView: View {
Spacer()
if isCreator {
Image("btn_big_share")
.resizable()
.frame(width: 33.3, height: 33.3)
.onTapGesture { shareChannel() }
}
}
if creator.creatorId == UserDefaults.int(forKey: .userId) {
Text("팔로워 리스트")
@ -158,7 +161,8 @@ struct UserProfileCreatorView_Previews: PreviewProvider {
isNotify: false,
isNotification: false,
notificationRecipientCount: 2
)
),
isCreator: false
) {
} showCreatorFollowNotifyDialog: {
} shareChannel: {

View File

@ -52,8 +52,7 @@ struct UserProfileView: View {
VStack(spacing: 0) {
if let creatorProfile = viewModel.creatorProfile {
VStack(spacing: 0) {
UserProfileCreatorView(
creator: creatorProfile.creator) {
UserProfileCreatorView(creator: creatorProfile.creator, isCreator: creatorProfile.isCreatorRole) {
viewModel.creatorFollow()
} showCreatorFollowNotifyDialog: {
isShowFollowNotifyDialog = true
@ -61,6 +60,7 @@ struct UserProfileView: View {
viewModel.shareChannel(userId: userId)
}
if creatorProfile.isCreatorRole {
UserProfileActivitySummaryView(item: creatorProfile.activitySummary)
.padding(.top, 13.3)
.padding(.horizontal, 13.3)
@ -112,7 +112,9 @@ struct UserProfileView: View {
}
}
}
}
if creatorProfile.isCreatorRole {
if !creatorProfile.seriesList.isEmpty {
UserProfileSeriesView(
creatorId: creatorProfile.creator.creatorId,
@ -216,6 +218,7 @@ struct UserProfileView: View {
}
.padding(.top, 26.7)
}
}
UserProfileFanTalkView(
userId: userId,