fix: 메인 홈 - 인기 크리에이터

- 팔로우 수 제거
- 팔로우 버튼 추가
- 배경: 그라데이션 제거, 하나의 색으로 설정
This commit is contained in:
Yu Sung
2025-07-21 23:10:24 +09:00
parent 23053b4223
commit 7318d7fcda
5 changed files with 94 additions and 40 deletions

View File

@@ -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