feat(chat): 채팅 탭 액션 아이콘을 정리한다
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "ic_new_talk_add.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -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