feat(home): 응원 크리에이터 섹션을 연결한다
This commit is contained in:
@@ -60,6 +60,21 @@ struct MainHomeRecommendationView: View {
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
MainHomeCheerCreatorSection(
|
||||
items: viewModel.recommendations?.cheerCreators ?? [],
|
||||
isFollowAllCompleted: viewModel.isFollowAllCompleted("cheer"),
|
||||
isFollowAllLoading: viewModel.isFollowAllLoading("cheer"),
|
||||
onTapCreator: onTapCreator,
|
||||
onTapFollowAll: {
|
||||
onTapFollowAll {
|
||||
viewModel.followAll(
|
||||
creatorIds: viewModel.recommendations?.cheerCreators.map(\.creatorId) ?? [],
|
||||
completionKey: "cheer"
|
||||
)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
.padding(.vertical, SodaSpacing.s20)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user