feat(home): 보온 주간 차트 콘텐츠 정렬 기준 추가
- 매출, 판매량, 댓글 수, 좋아요 수
This commit is contained in:
@@ -18,6 +18,10 @@ struct HomeWeeklyChartView: View {
|
||||
]
|
||||
|
||||
let contentList: [GetAudioContentRankingItem]
|
||||
let onTapSort: (String) -> Void
|
||||
|
||||
let sortList = ["매출", "판매량", "댓글", "좋아요"]
|
||||
@State private var selectedSort = "매출"
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 16) {
|
||||
@@ -34,6 +38,14 @@ struct HomeWeeklyChartView: View {
|
||||
}
|
||||
.padding(.horizontal, 24)
|
||||
|
||||
HStack(spacing: 16) {
|
||||
ContentMainContentThemeView(
|
||||
themeList: sortList,
|
||||
selectTheme: onTapSort,
|
||||
selectedTheme: $selectedSort
|
||||
)
|
||||
}
|
||||
|
||||
ScrollView(.horizontal, showsIndicators: false) {
|
||||
LazyHGrid(rows: rows, spacing: 16) {
|
||||
ForEach(0..<contentList.count, id: \.self) { index in
|
||||
@@ -205,6 +217,7 @@ struct HomeWeeklyChartView: View {
|
||||
isPointAvailable: true,
|
||||
creatorProfileImageUrl: "https://test-cf.sodalive.net/profile/default-profile.png"
|
||||
)
|
||||
]
|
||||
],
|
||||
onTapSort: { _ in }
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user