Skip to content

Commit 9fdcf36

Browse files
committed
remove scanner as nav destination
At the moment the scanner child view only has buttons that will prompt modal flow or web view, so no need to be part of the nav stack further down.
1 parent 2098428 commit 9fdcf36

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

WooCommerce/Classes/POS/Presentation/Settings/PointOfSaleSettingsHardwareDetailView.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ struct PointOfSaleSettingsHardwareDetailView: View {
3131
cardReadersView
3232
case .hardware(.scanners):
3333
scannersView
34-
case .scanner:
35-
// This case in the navigation stack is not reached,
36-
// as we present the destination modally instead of further navigation through the stack.
37-
EmptyView()
3834
}
3935
}
4036
.posModal(isPresented: $showBarcodeScanningSetupModal) {
@@ -151,7 +147,6 @@ struct PointOfSaleSettingsHardwareDetailView: View {
151147
extension PointOfSaleSettingsHardwareDetailView {
152148
enum NavigationDestination: Hashable {
153149
case hardware(PointOfSaleSettingsView.HardwareDestination)
154-
case scanner(ScannerDestination)
155150
}
156151

157152
enum ScannerDestination: Identifiable, CaseIterable {

0 commit comments

Comments
 (0)