feat(chat-home): 신규 캐릭터 전체보기 버튼 터치시 로그인/본인인증 단계 추가

This commit is contained in:
Yu Sung
2025-10-20 18:55:48 +09:00
parent 623375cd9f
commit ad26ab08ad
2 changed files with 7 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ struct CharacterView: View {
private let horizontalPadding: CGFloat = 16 private let horizontalPadding: CGFloat = 16
let onSelectCharacter: (Int) -> Void let onSelectCharacter: (Int) -> Void
let onSelectNewCharacterAll: () -> Void
var body: some View { var body: some View {
BaseView(isLoading: $viewModel.isLoading) { BaseView(isLoading: $viewModel.isLoading) {
@@ -55,8 +56,7 @@ struct CharacterView: View {
isShowRank: false, isShowRank: false,
trailingTitle: "전체보기", trailingTitle: "전체보기",
onTapTrailing: { onTapTrailing: {
AppState.shared onSelectNewCharacterAll()
.setAppStep(step: .newCharacterAll)
}, },
onTap: { ch in onTap: { ch in
onSelectCharacter(ch.characterId) onSelectCharacter(ch.characterId)
@@ -111,5 +111,8 @@ struct CharacterView: View {
} }
#Preview { #Preview {
CharacterView(onSelectCharacter: { _ in }) CharacterView(
onSelectCharacter: { _ in },
onSelectNewCharacterAll: {}
)
} }

View File

@@ -114,7 +114,7 @@ struct ChatTabView: View {
Group { Group {
switch selectedTab { switch selectedTab {
case .character: case .character:
CharacterView(onSelectCharacter: handleCharacterSelection) CharacterView(onSelectCharacter: handleCharacterSelection, onSelectNewCharacterAll: handleCharacterSelection)
case .talk: case .talk:
TalkView() TalkView()
} }