feat(chat): 채팅 탭 액션 아이콘을 정리한다
This commit is contained in:
@@ -2,7 +2,6 @@ import SwiftUI
|
||||
|
||||
struct MainChatView: View {
|
||||
let onTapCanCharge: () -> Void
|
||||
let onTapSearch: () -> Void
|
||||
|
||||
@StateObject private var viewModel = MainChatViewModel()
|
||||
@StateObject private var appState = AppState.shared
|
||||
@@ -13,9 +12,6 @@ struct MainChatView: View {
|
||||
HStack(spacing: SodaSpacing.s14) {
|
||||
Image("ic_bar_cash")
|
||||
.onTapGesture { onTapCanCharge() }
|
||||
|
||||
Image("ic_bar_search")
|
||||
.onTapGesture { onTapSearch() }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,6 +127,6 @@ struct MainChatView: View {
|
||||
|
||||
struct MainChatView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
MainChatView(onTapCanCharge: {}, onTapSearch: {})
|
||||
MainChatView(onTapCanCharge: {})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ struct MainView: View {
|
||||
Spacer()
|
||||
|
||||
CreatorChannelFloatingIconButton(
|
||||
imageName: "ic_plus_no_bg",
|
||||
imageName: "ic_new_talk_add",
|
||||
backgroundColor: Color.soda400,
|
||||
accessibilityLabel: I18n.UserCreatorChatRecipientSearch.openButtonAccessibilityLabel,
|
||||
action: showUserCreatorChatRecipientSearch
|
||||
@@ -234,10 +234,7 @@ struct MainView: View {
|
||||
onTapNewAndHotAll: handleContentNewAndHotAllTap
|
||||
)
|
||||
case .chat:
|
||||
MainChatView(
|
||||
onTapCanCharge: handleHomeCanChargeTap,
|
||||
onTapSearch: handleHomeSearchTap
|
||||
)
|
||||
MainChatView(onTapCanCharge: handleHomeCanChargeTap)
|
||||
case .my:
|
||||
MyPageView()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user