feat(character-detail): 상세 화면 도입 및 네비게이션/API 연동
This commit is contained in:
@@ -19,7 +19,7 @@ struct CharacterView: View {
|
||||
// 배너
|
||||
if !viewModel.banners.isEmpty {
|
||||
AutoSlideCharacterBannerView(items: viewModel.banners) { banner in
|
||||
DEBUG_LOG("Banner tapped: \(banner.characterId)")
|
||||
AppState.shared.setAppStep(step: .characterDetail(characterId: banner.characterId))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ struct CharacterView: View {
|
||||
titleCount: viewModel.recentCharacters.count,
|
||||
items: viewModel.recentCharacters
|
||||
) { ch in
|
||||
DEBUG_LOG("Recent tapped: \(ch.characterId)")
|
||||
AppState.shared.setAppStep(step: .characterDetail(characterId: ch.characterId))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ struct CharacterView: View {
|
||||
title: "신규 캐릭터",
|
||||
items: viewModel.newCharacters
|
||||
) { ch in
|
||||
DEBUG_LOG("New tapped: \(ch.characterId)")
|
||||
AppState.shared.setAppStep(step: .characterDetail(characterId: ch.characterId))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ struct CharacterView: View {
|
||||
title: section.title,
|
||||
items: section.characters
|
||||
) { ch in
|
||||
DEBUG_LOG("Curation tapped: \\(ch.characterId)")
|
||||
AppState.shared.setAppStep(step: .characterDetail(characterId: ch.characterId))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user