투표기능 추가

This commit is contained in:
Yu Sung
2025-01-07 19:59:19 +09:00
parent a2b7fef39e
commit 7e13689763
7 changed files with 112 additions and 5 deletions

View File

@@ -11,6 +11,7 @@ import Kingfisher
struct AuditionApplicantItemView: View {
let item: GetAuditionRoleApplicantItem
let onClickVote: (Int) -> Void
var body: some View {
VStack(spacing: 5.3) {
@@ -47,6 +48,9 @@ struct AuditionApplicantItemView: View {
.font(.custom(Font.medium.rawValue, size: 12))
.foregroundColor(Color.gray77)
}
.onTapGesture {
onClickVote(item.applicantId)
}
}
.padding(.vertical, 18.7)
@@ -67,6 +71,7 @@ struct AuditionApplicantItemView: View {
profileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png",
voiceUrl: "",
voteCount: 777
)
),
onClickVote: { _ in }
)
}

View File

@@ -16,5 +16,5 @@ struct GetAuditionRoleApplicantItem: Decodable {
let nickname: String
let profileImageUrl: String
let voiceUrl: String
let voteCount: Int
var voteCount: Int
}