fix(home): AI 캐릭터 탭 이동을 맞춘다
This commit is contained in:
@@ -21,7 +21,7 @@ struct MainHomeAiCharacterSection: View {
|
|||||||
LazyHStack(alignment: .center, spacing: SodaSpacing.s4) {
|
LazyHStack(alignment: .center, spacing: SodaSpacing.s4) {
|
||||||
ForEach(items, id: \.self) { item in
|
ForEach(items, id: \.self) { item in
|
||||||
Button {
|
Button {
|
||||||
onTapCharacter(item.characterId)
|
onTapCharacter(item.creatorId)
|
||||||
} label: {
|
} label: {
|
||||||
AiCharacterCard(
|
AiCharacterCard(
|
||||||
name: item.name,
|
name: item.name,
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ struct MainView: View {
|
|||||||
onTapLive: handleRecommendationLiveTap,
|
onTapLive: handleRecommendationLiveTap,
|
||||||
onTapCreator: handleRecommendationCreatorTap,
|
onTapCreator: handleRecommendationCreatorTap,
|
||||||
onTapContent: handleRecommendationContentTap,
|
onTapContent: handleRecommendationContentTap,
|
||||||
onTapCharacter: handleRecommendationCharacterTap,
|
onTapCharacter: handleRecommendationCreatorTap,
|
||||||
onTapCommunity: handleRecommendationCommunityTap,
|
onTapCommunity: handleRecommendationCommunityTap,
|
||||||
onTapBanner: handleRecommendationBannerTap,
|
onTapBanner: handleRecommendationBannerTap,
|
||||||
onTapFollowAll: handleRecommendationFollowAllTap,
|
onTapFollowAll: handleRecommendationFollowAllTap,
|
||||||
@@ -472,13 +472,6 @@ struct MainView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func handleRecommendationCharacterTap(characterId: Int) {
|
|
||||||
guard characterId > 0 else { return }
|
|
||||||
performRecommendationDetailAction {
|
|
||||||
appState.setAppStep(step: .characterDetail(characterId: characterId))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private func handleRecommendationCommunityTap(creatorId: Int) {
|
private func handleRecommendationCommunityTap(creatorId: Int) {
|
||||||
guard creatorId > 0 else { return }
|
guard creatorId > 0 else { return }
|
||||||
performRecommendationDetailAction {
|
performRecommendationDetailAction {
|
||||||
|
|||||||
Reference in New Issue
Block a user