|
|
@ -44,19 +44,16 @@ struct ReviewCard: View {
|
|
|
|
VStack(alignment: .center,spacing:0){
|
|
|
|
VStack(alignment: .center,spacing:0){
|
|
|
|
HStack(){
|
|
|
|
HStack(){
|
|
|
|
Spacer()
|
|
|
|
Spacer()
|
|
|
|
|
|
|
|
Text((betDetail.userParticipation?.stake.description) ?? "")
|
|
|
|
|
|
|
|
.foregroundColor(.white)
|
|
|
|
|
|
|
|
.font(.system(size: 25))
|
|
|
|
|
|
|
|
.fontWeight(.bold)
|
|
|
|
|
|
|
|
Image("allcoinWhiteIcon")
|
|
|
|
|
|
|
|
.resizable()
|
|
|
|
|
|
|
|
.frame(width: 18, height: 20)
|
|
|
|
switch betDetail.bet.status {
|
|
|
|
switch betDetail.bet.status {
|
|
|
|
case .inProgress:
|
|
|
|
case .waiting, .inProgress, .closing:
|
|
|
|
Text(betDetail)
|
|
|
|
Text("bet_status_stake")
|
|
|
|
.foregroundColor(.white)
|
|
|
|
|
|
|
|
.font(.system(size: 25))
|
|
|
|
|
|
|
|
.fontWeight(.bold)
|
|
|
|
|
|
|
|
case .waiting:
|
|
|
|
|
|
|
|
Text("waiting")
|
|
|
|
|
|
|
|
.foregroundColor(.white)
|
|
|
|
|
|
|
|
.font(.system(size: 25))
|
|
|
|
|
|
|
|
.fontWeight(.bold)
|
|
|
|
|
|
|
|
case .closing:
|
|
|
|
|
|
|
|
Text("bet_finished")
|
|
|
|
|
|
|
|
.foregroundColor(.white)
|
|
|
|
.foregroundColor(.white)
|
|
|
|
.font(.system(size: 25))
|
|
|
|
.font(.system(size: 25))
|
|
|
|
.fontWeight(.bold)
|
|
|
|
.fontWeight(.bold)
|
|
|
|