fix(main): 추천 커뮤니티 상세로 이동한다
This commit is contained in:
@@ -161,7 +161,7 @@ struct MainView: View {
|
||||
onTapCreator: handleRecommendationCreatorTap,
|
||||
onTapContent: handleRecommendationContentTap,
|
||||
onTapCharacter: handleRecommendationCreatorTap,
|
||||
onTapCommunity: handleRecommendationCommunityTap,
|
||||
onTapCommunityPost: handleRecommendationCommunityPostTap,
|
||||
onTapBanner: handleRecommendationBannerTap,
|
||||
onTapFollowAll: handleRecommendationFollowAllTap,
|
||||
onSelectFollowingTab: handleFollowingTabSelection,
|
||||
@@ -494,10 +494,10 @@ struct MainView: View {
|
||||
}
|
||||
}
|
||||
|
||||
private func handleRecommendationCommunityTap(creatorId: Int) {
|
||||
guard creatorId > 0 else { return }
|
||||
private func handleRecommendationCommunityPostTap(postId: Int) {
|
||||
guard postId > 0 else { return }
|
||||
performRecommendationDetailAction {
|
||||
appState.setAppStep(step: .creatorCommunityAll(creatorId: creatorId))
|
||||
appState.setAppStep(step: .creatorChannelCommunityPostDetail(postId: postId))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -527,7 +527,9 @@ struct MainView: View {
|
||||
case .audio:
|
||||
handleRecommendationContentTap(contentId: targetId)
|
||||
case .community:
|
||||
handleRecommendationCommunityTap(creatorId: targetId)
|
||||
performRecommendationDetailAction {
|
||||
appState.setAppStep(step: .creatorCommunityAll(creatorId: targetId))
|
||||
}
|
||||
case .unknown:
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user