투표기능 추가
This commit is contained in:
@@ -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 }
|
||||
)
|
||||
}
|
||||
|
@@ -16,5 +16,5 @@ struct GetAuditionRoleApplicantItem: Decodable {
|
||||
let nickname: String
|
||||
let profileImageUrl: String
|
||||
let voiceUrl: String
|
||||
let voteCount: Int
|
||||
var voteCount: Int
|
||||
}
|
||||
|
Reference in New Issue
Block a user