fix: 메인 홈 - 인기 크리에이터
- 팔로우 수 제거 - 팔로우 버튼 추가 - 배경: 그라데이션 제거, 하나의 색으로 설정
This commit is contained in:
@@ -109,7 +109,22 @@ struct HomeTabView: View {
|
||||
HStack(spacing: 16) {
|
||||
ForEach(0..<viewModel.creatorRanking.count, id: \.self) {
|
||||
let item = viewModel.creatorRanking[$0]
|
||||
HomeCreatorRankingItemView(rank: $0 + 1, item: item)
|
||||
HomeCreatorRankingItemView(
|
||||
rank: $0 + 1,
|
||||
item: item,
|
||||
onClickFollow: { creatorId, follow in
|
||||
if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
|
||||
if follow {
|
||||
viewModel.creatorFollow(creatorId: item.id, follow: true, notify: true)
|
||||
} else {
|
||||
viewModel.creatorFollow(creatorId: item.id, follow: false, notify: false)
|
||||
}
|
||||
} else {
|
||||
AppState.shared
|
||||
.setAppStep(step: .login)
|
||||
}
|
||||
}
|
||||
)
|
||||
.onTapGesture {
|
||||
if !token.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty {
|
||||
AppState.shared
|
||||
|
||||
Reference in New Issue
Block a user