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

View File

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