Skip to content

Commit 074a61a

Browse files
committed
Remove a dummy welcome view
1 parent 9c7b9d2 commit 074a61a

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

WooCommerce/Classes/POS/Presentation/Barcode Scanner Setup/PointOfSaleBarcodeScannerSetupFlow.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,6 @@ class PointOfSaleBarcodeScannerSetupFlow {
240240
return currentStepKey.analyticsValue
241241
}
242242

243-
private func createWelcomeStep(title: String) -> PointOfSaleBarcodeScannerSetupStep {
244-
PointOfSaleBarcodeScannerSetupStep(
245-
title: title,
246-
content: { PointOfSaleBarcodeScannerWelcomeView(title: title) },
247-
buttonCustomization: PointOfSaleBarcodeScannerWelcomeButtonCustomization()
248-
)
249-
}
250-
251243
// MARK: - Steps
252244

253245
private func testScanStep(

WooCommerce/Classes/POS/Presentation/Barcode Scanner Setup/PointOfSaleBarcodeScannerSetupStepViews.swift

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
import SwiftUI
22

3-
// TODO: Remove this view when all flows are complete
4-
struct PointOfSaleBarcodeScannerWelcomeView: View {
5-
let title: String
6-
7-
var body: some View {
8-
VStack(spacing: POSSpacing.medium) {
9-
Text(title)
10-
.font(.posBodyLargeBold)
11-
.foregroundColor(.posOnSurface)
12-
13-
Text("TODO: Implement \(title) setup flow")
14-
.font(.posBodyMediumRegular())
15-
.foregroundColor(.posOnSurfaceVariantHighest)
16-
.multilineTextAlignment(.center)
17-
}
18-
}
19-
}
20-
213
struct PointOfSaleBarcodeScannerBarcodeView: View {
224
let title: String
235
let instruction: String
@@ -212,25 +194,3 @@ struct PointOfSaleBarcodeScannerErrorView: View {
212194
"to factory settings, then retry the set up flow."
213195
}
214196
}
215-
216-
// MARK: - Button Customizations
217-
@available(iOS 17.0, *)
218-
struct PointOfSaleBarcodeScannerWelcomeButtonCustomization: PointOfSaleBarcodeScannerButtonCustomization {
219-
func customizeButtons(for flow: PointOfSaleBarcodeScannerSetupFlow) -> PointOfSaleFlowButtonConfiguration {
220-
return PointOfSaleFlowButtonConfiguration(
221-
primaryButton: PointOfSaleFlowButtonConfiguration.ButtonConfig(
222-
title: Localization.doneButtonTitle,
223-
action: { flow.nextStep() }
224-
),
225-
secondaryButton: nil
226-
)
227-
}
228-
229-
private enum Localization {
230-
static let doneButtonTitle = NSLocalizedString(
231-
"pos.barcodeScannerSetup.done.button.title",
232-
value: "Done",
233-
comment: "Title for the done button in barcode scanner setup navigation"
234-
)
235-
}
236-
}

0 commit comments

Comments
 (0)