콘텐츠 상세 - 대여만 가능한 콘텐츠의 경우 소장 버튼이 보이지 않고 가격의 100%가 보이도록 수정
This commit is contained in:
@@ -10,6 +10,7 @@ import SwiftUI
|
||||
struct ContentDetailPurchaseButton: View {
|
||||
|
||||
let price: Int
|
||||
let isOnlyRental: Bool
|
||||
|
||||
var body: some View {
|
||||
HStack(spacing: 0) {
|
||||
@@ -26,7 +27,7 @@ struct ContentDetailPurchaseButton: View {
|
||||
.font(.custom(Font.light.rawValue, size: 12))
|
||||
.foregroundColor(.white)
|
||||
|
||||
Text(" 구매하기")
|
||||
Text(isOnlyRental ? " 대여하기" : " 구매하기")
|
||||
.font(.custom(Font.bold.rawValue, size: 14.7))
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
|
Reference in New Issue
Block a user