라이브 상세 - 공유 버튼 제거

This commit is contained in:
Yu Sung 2023-10-05 02:03:41 +09:00
parent 8255065bba
commit c00931761c
1 changed files with 28 additions and 57 deletions

View File

@ -311,12 +311,7 @@ struct LiveDetailView: View {
if room.channelName.isNullOrBlank() {
if room.manager.id == UserDefaults.int(forKey: .userId) {
VStack(spacing: 16.7) {
HStack(spacing: 13.3) {
Image("btn_big_share")
.onTapGesture {
viewModel.shareRoom(roomId: room.roomId)
}
HStack(spacing: 13.3) {
Text("수정")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color.white)
@ -362,65 +357,41 @@ struct LiveDetailView: View {
}
.frame(width: screenSize().width - 26.7)
} else if room.isPaid {
HStack(spacing: 13.3) {
Button {
viewModel.shareRoom(roomId: room.roomId)
} label: {
Image("btn_big_share")
}
Text("예약완료")
Text("예약완료")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "777777"))
.padding(.vertical, 16)
.padding(.horizontal, 99)
.background(Color(hex: "525252"))
.cornerRadius(10)
.frame(width: screenSize().width - 26.7)
} else {
Button {
onClickReservation()
AppState.shared.back()
} label: {
Text("예약하기")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color(hex: "777777"))
.foregroundColor(Color.white)
.padding(.vertical, 16)
.padding(.horizontal, 99)
.background(Color(hex: "525252"))
.background(Color(hex: "9970ff"))
.cornerRadius(10)
}
.frame(width: screenSize().width - 26.7)
} else {
HStack(spacing: 13.3) {
Button {
viewModel.shareRoom(roomId: room.roomId)
} label: {
Image("btn_big_share")
}
Button {
onClickReservation()
AppState.shared.back()
} label: {
Text("예약하기")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color.white)
.padding(.vertical, 16)
.padding(.horizontal, 99)
.background(Color(hex: "9970ff"))
.cornerRadius(10)
}
}
.frame(width: screenSize().width - 26.7)
}
} else {
HStack(spacing: 13.3) {
Button {
viewModel.shareRoom(roomId: room.roomId)
} label: {
Image("btn_big_share")
}
Button {
onClickParticipant()
AppState.shared.back()
} label: {
Text("지금 참여하기")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color.white)
.padding(.vertical, 16)
.padding(.horizontal, 79)
.background(Color(hex: "ff5c49"))
.cornerRadius(10)
}
Button {
onClickParticipant()
AppState.shared.back()
} label: {
Text("지금 참여하기")
.font(.custom(Font.bold.rawValue, size: 18.3))
.foregroundColor(Color.white)
.padding(.vertical, 16)
.padding(.horizontal, 79)
.background(Color(hex: "ff5c49"))
.cornerRadius(10)
}
.frame(width: screenSize().width - 26.7)
}