Skip to content

Commit

Permalink
Update HubMenu.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
bozidarsevo committed May 20, 2024
1 parent 6757e9c commit 510a7fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WooCommerce/Classes/ViewRelated/Hub Menu/HubMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ struct HubMenu: View {
@ObservedObject private var iO = Inject.observer

@ObservedObject private var viewModel: HubMenuViewModel

@StateObject private var historyViewModel = PointOfSaleHistoryViewModel.makeFakeHistory()

init(viewModel: HubMenuViewModel) {
self.viewModel = viewModel
Expand Down Expand Up @@ -167,7 +169,7 @@ private extension HubMenu {
case HubMenuViewModel.Customers.id:
CustomersListView(viewModel: .init(siteID: viewModel.siteID))
case HubMenuViewModel.PointOfSaleEntryPoint.id:
PointOfSaleEntryPointView(historyViewModel: PointOfSaleHistoryViewModel.makeFakeHistory(), hideAppTabBar: { isHidden in
PointOfSaleEntryPointView(historyViewModel: historyViewModel, hideAppTabBar: { isHidden in
AppDelegate.shared.setShouldHideTabBar(isHidden)
})
default:
Expand Down

0 comments on commit 510a7fa

Please sign in to comment.