feat(main): 콘텐츠 탭 타이틀바를 정리한다
This commit is contained in:
@@ -3,7 +3,7 @@ import SwiftUI
|
||||
struct MainContentView: View {
|
||||
let onTapCanCharge: () -> Void
|
||||
let onTapSearch: () -> Void
|
||||
let onTapNotificationList: () -> Void
|
||||
let onTapStorage: () -> Void
|
||||
let onTapContent: (Int) -> Void
|
||||
let onTapBanner: (AudioBannerResponse) -> Void
|
||||
let onTapSeries: (Int) -> Void
|
||||
@@ -14,7 +14,7 @@ struct MainContentView: View {
|
||||
|
||||
var body: some View {
|
||||
VStack(spacing: 0) {
|
||||
HomeTitleBar {
|
||||
DefaultTitleBar(title: MainTab.content.title) {
|
||||
HStack(spacing: SodaSpacing.s14) {
|
||||
Image("ic_bar_cash")
|
||||
.onTapGesture { onTapCanCharge() }
|
||||
@@ -22,8 +22,8 @@ struct MainContentView: View {
|
||||
Image("ic_bar_search")
|
||||
.onTapGesture { onTapSearch() }
|
||||
|
||||
Image("ic_bar_bell")
|
||||
.onTapGesture { onTapNotificationList() }
|
||||
Image("ic_bar_storage")
|
||||
.onTapGesture { onTapStorage() }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ struct MainContentView_Previews: PreviewProvider {
|
||||
MainContentView(
|
||||
onTapCanCharge: {},
|
||||
onTapSearch: {},
|
||||
onTapNotificationList: {},
|
||||
onTapStorage: {},
|
||||
onTapContent: { _ in },
|
||||
onTapBanner: { _ in },
|
||||
onTapSeries: { _ in },
|
||||
|
||||
@@ -175,7 +175,7 @@ struct MainView: View {
|
||||
MainContentView(
|
||||
onTapCanCharge: handleHomeCanChargeTap,
|
||||
onTapSearch: handleHomeSearchTap,
|
||||
onTapNotificationList: handleHomeNotificationListTap,
|
||||
onTapStorage: handleContentStorageTap,
|
||||
onTapContent: handleRecommendationContentTap,
|
||||
onTapBanner: handleContentAudioBannerTap,
|
||||
onTapSeries: handleContentOriginalSeriesTap,
|
||||
@@ -583,6 +583,10 @@ struct MainView: View {
|
||||
}
|
||||
}
|
||||
|
||||
private func handleContentStorageTap() {
|
||||
AppState.shared.setAppStep(step: .myBox(currentTab: .orderlist))
|
||||
}
|
||||
|
||||
private func handleContentOriginalSeriesTap(seriesId: Int) {
|
||||
guard seriesId > 0 else { return }
|
||||
performRecommendationDetailAction {
|
||||
|
||||
Reference in New Issue
Block a user