Skip to content

Commit a2dbaf9

Browse files
committed
update link to barcode scanner docs
1 parent 5df8f98 commit a2dbaf9

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

WooCommerce/Classes/POS/Presentation/PointOfSaleBarcodeScannerInformationModal.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ struct ProductBarcodeSetupInformation: View {
118118
private var productSetupTextWithLink: AttributedString {
119119
let mainContent = Localization.productBarcodeSetupMessage
120120
let linkText = Localization.productBarcodeSetupLinkText
121-
let link = Constants.detailsLink?.absoluteString ?? ""
121+
let link = Constants.detailsLink.absoluteString
122122

123123
let content = String.localizedStringWithFormat(mainContent, linkText)
124124
var attributedText = AttributedString(content)
@@ -136,7 +136,7 @@ struct ProductBarcodeSetupInformation: View {
136136
}
137137

138138
private enum Constants {
139-
static let detailsLink = URL(string: "https://woocommerce.com/document/barcode-and-qr-code-scanner/")
139+
static let detailsLink = WooConstants.URLs.pointOfSaleBarcodeScannerDocumentation.asURL()
140140
}
141141

142142
private enum Localization {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct PointOfSaleSettingsHardwareDetailView: View {
6767
PointOfSaleBarcodeScannerSetup(isPresented: $showBarcodeScanningSetupModal)
6868
}
6969
.posFullScreenCover(isPresented: $showBarcodeScanningDocumentationModal) {
70-
SafariView(url: WooConstants.URLs.pointOfSaleDocumentation.asURL())
70+
SafariView(url: WooConstants.URLs.pointOfSaleBarcodeScannerDocumentation.asURL())
7171
}
7272
}
7373
}

WooCommerce/Classes/System/WooConstants.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ extension WooConstants {
254254
///
255255
case pointOfSaleDocumentation = "https://woocommerce.com/document/woo-mobile-app-point-of-sale-mode/"
256256

257+
/// URL for Point of Sale's barcode scanner documentation
258+
///
259+
case pointOfSaleBarcodeScannerDocumentation = "https://woocommerce.com/document/barcode-and-qr-code-scanner/"
260+
257261
/// Temporary redirect URL for authenticated web view when authenticating WPCom automatically
258262
///
259263
case wpcomTempRedirectURL = "https://wordpress.com/mobile-redirect"

0 commit comments

Comments
 (0)