콘텐츠 상세
- 한정판이 매진된 경우 Player 가운데 Sold Out 표시
This commit is contained in:
@@ -36,6 +36,17 @@ struct ContentDetailInfoLimitedEditionView: View {
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.foregroundColor(Color.grayd2)
|
||||
.padding(.leading, 2.3)
|
||||
} else if (remainingContentCount <= 0) {
|
||||
Text("Sold Out")
|
||||
.font(.custom(Font.medium.rawValue, size: 12))
|
||||
.foregroundColor(Color.grayd2)
|
||||
.padding(.horizontal, 5.3)
|
||||
.padding(.vertical, 3.3)
|
||||
.overlay(
|
||||
RoundedRectangle(cornerRadius: 2.6)
|
||||
.stroke(lineWidth: 1)
|
||||
.foregroundColor(Color.grayd2)
|
||||
)
|
||||
} else {
|
||||
Text("잔여수량")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
@@ -59,7 +70,7 @@ struct ContentDetailInfoLimitedEditionView: View {
|
||||
#Preview {
|
||||
ContentDetailInfoLimitedEditionView(
|
||||
totalContentCount: 10,
|
||||
remainingContentCount: 3,
|
||||
orderSequence: 5
|
||||
remainingContentCount: 0,
|
||||
orderSequence: nil
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user