Skip to content

Commit 53dd19a

Browse files
committed
Remove the only WooConstants reference from POS
1 parent 4945b39 commit 53dd19a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ struct PointOfSaleSettingsHardwareDetailView: View {
156156
}
157157
.navigationBarBackButtonHidden(true)
158158
.posFullScreenCover(isPresented: $showCardReaderDocumentationModal) {
159-
SafariView(url: WooConstants.URLs.inPersonPaymentsLearnMoreWCPay.asURL())
159+
if let url = URL(string: Constants.inPersonPaymentsLearnMoreWCPay.rawValue) {
160+
SafariView(url: url)
161+
}
160162
}
161163
}
162164

@@ -383,6 +385,13 @@ private extension PointOfSaleSettingsHardwareDetailView {
383385
}
384386
}
385387

388+
private extension PointOfSaleSettingsHardwareDetailView {
389+
enum Constants: String {
390+
case inPersonPaymentsLearnMoreWCPay =
391+
"https://woocommerce.com/document/woocommerce-payments/in-person-payments/getting-started-with-in-person-payments/"
392+
}
393+
}
394+
386395
#if DEBUG
387396
#Preview {
388397
PointOfSaleSettingsHardwareDetailView(settingsController: PointOfSaleSettingsPreviewController())

0 commit comments

Comments
 (0)