마이페이지 - 구매목록 추가
This commit is contained in:
46
SodaLive/Sources/MyPage/OrderList/OrderListView.swift
Normal file
46
SodaLive/Sources/MyPage/OrderList/OrderListView.swift
Normal file
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// OrderListView.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/08/24.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct OrderListView: View {
|
||||
let items: [GetAudioContentOrderListItem]
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 0) {
|
||||
HStack(spacing: 0) {
|
||||
Text("구매목록")
|
||||
.font(.custom(Font.bold.rawValue, size: 18))
|
||||
.foregroundColor(Color(hex: "eeeeee"))
|
||||
|
||||
Spacer()
|
||||
|
||||
Text("전체보기")
|
||||
.font(.custom(Font.medium.rawValue, size: 11))
|
||||
.foregroundColor(Color(hex: "bbbbbb"))
|
||||
.onTapGesture {
|
||||
AppState.shared.setAppStep(step: .orderListAll)
|
||||
}
|
||||
}
|
||||
|
||||
VStack(spacing: 13.3) {
|
||||
ForEach(0..<items.count, id: \.self) { index in
|
||||
let item = items[index]
|
||||
OrderListItemView(item: item)
|
||||
.contentShape(Rectangle())
|
||||
.onTapGesture {
|
||||
AppState
|
||||
.shared
|
||||
.setAppStep(step: .contentDetail(contentId: item.contentId))
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(.top, 26.7)
|
||||
}
|
||||
.padding(.horizontal, 13.3)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user