feat(chat-home): 신규 캐릭터 전체보기 버튼 터치시 로그인/본인인증 단계 추가
This commit is contained in:
@@ -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: {}
|
||||
)
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ struct ChatTabView: View {
|
||||
Group {
|
||||
switch selectedTab {
|
||||
case .character:
|
||||
CharacterView(onSelectCharacter: handleCharacterSelection)
|
||||
CharacterView(onSelectCharacter: handleCharacterSelection, onSelectNewCharacterAll: handleCharacterSelection)
|
||||
case .talk:
|
||||
TalkView()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user