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 {
|
struct MainChatView: View {
|
||||||
let onTapCanCharge: () -> Void
|
let onTapCanCharge: () -> Void
|
||||||
let onTapSearch: () -> Void
|
|
||||||
|
|
||||||
@StateObject private var viewModel = MainChatViewModel()
|
@StateObject private var viewModel = MainChatViewModel()
|
||||||
@StateObject private var appState = AppState.shared
|
@StateObject private var appState = AppState.shared
|
||||||
@@ -13,9 +12,6 @@ struct MainChatView: View {
|
|||||||
HStack(spacing: SodaSpacing.s14) {
|
HStack(spacing: SodaSpacing.s14) {
|
||||||
Image("ic_bar_cash")
|
Image("ic_bar_cash")
|
||||||
.onTapGesture { onTapCanCharge() }
|
.onTapGesture { onTapCanCharge() }
|
||||||
|
|
||||||
Image("ic_bar_search")
|
|
||||||
.onTapGesture { onTapSearch() }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,6 +127,6 @@ struct MainChatView: View {
|
|||||||
|
|
||||||
struct MainChatView_Previews: PreviewProvider {
|
struct MainChatView_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
MainChatView(onTapCanCharge: {}, onTapSearch: {})
|
MainChatView(onTapCanCharge: {})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ struct MainView: View {
|
|||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
CreatorChannelFloatingIconButton(
|
CreatorChannelFloatingIconButton(
|
||||||
imageName: "ic_plus_no_bg",
|
imageName: "ic_new_talk_add",
|
||||||
backgroundColor: Color.soda400,
|
backgroundColor: Color.soda400,
|
||||||
accessibilityLabel: I18n.UserCreatorChatRecipientSearch.openButtonAccessibilityLabel,
|
accessibilityLabel: I18n.UserCreatorChatRecipientSearch.openButtonAccessibilityLabel,
|
||||||
action: showUserCreatorChatRecipientSearch
|
action: showUserCreatorChatRecipientSearch
|
||||||
@@ -234,10 +234,7 @@ struct MainView: View {
|
|||||||
onTapNewAndHotAll: handleContentNewAndHotAllTap
|
onTapNewAndHotAll: handleContentNewAndHotAllTap
|
||||||
)
|
)
|
||||||
case .chat:
|
case .chat:
|
||||||
MainChatView(
|
MainChatView(onTapCanCharge: handleHomeCanChargeTap)
|
||||||
onTapCanCharge: handleHomeCanChargeTap,
|
|
||||||
onTapSearch: handleHomeSearchTap
|
|
||||||
)
|
|
||||||
case .my:
|
case .my:
|
||||||
MyPageView()
|
MyPageView()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user