Skip to content

Commit 4bb6fc5

Browse files
committed
move pointOfSaleDocumentation to POSConstants
1 parent 2990f6b commit 4bb6fc5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

WooCommerce/Classes/POS/Presentation/PointOfSaleDashboardView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private extension PointOfSaleDashboardView {
204204
}
205205

206206
var documentationView: some View {
207-
SafariView(url: WooConstants.URLs.pointOfSaleDocumentation.asURL())
207+
SafariView(url: POSConstants.URLs.pointOfSaleDocumentation.asURL())
208208
}
209209

210210
func paymentsOnboardingView(from onboardingViewModel: CardPresentPaymentsOnboardingViewModel) -> some View {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct PointOfSaleSettingsHelpDetailView: View {
8282
.posFullScreenCover(isPresented: $showDocumentation) {
8383
// TODO: Remove copy on PointOfSaleDashboardView.documentationView
8484
// WOOMOB-1168
85-
SafariView(url: WooConstants.URLs.pointOfSaleDocumentation.asURL())
85+
SafariView(url: POSConstants.URLs.pointOfSaleDocumentation.asURL())
8686

8787
}
8888
.posFullScreenCover(isPresented: $showSupport) {

WooCommerce/Classes/POS/Utils/POSConstants.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ public enum POSConstants {
88
Self.trustedURL(self.rawValue)
99
}
1010

11+
/// URL for Point of Sale documentation
12+
///
13+
case pointOfSaleDocumentation = "https://woocommerce.com/document/woo-mobile-app-point-of-sale-mode/"
14+
1115
/// URL for Point of Sale's barcode scanner documentation
1216
///
1317
case pointOfSaleBarcodeScannerDocumentation = "https://woocommerce.com/document/barcode-and-qr-code-scanner/"

WooCommerce/Classes/System/WooConstants.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,6 @@ extension WooConstants {
250250
///
251251
case inPersonPaymentsLearnMoreStripe = "https://woocommerce.com/document/stripe/accept-in-person-payments-with-stripe/"
252252

253-
/// URL for Point of Sale documentation
254-
///
255-
case pointOfSaleDocumentation = "https://woocommerce.com/document/woo-mobile-app-point-of-sale-mode/"
256-
257253
/// Temporary redirect URL for authenticated web view when authenticating WPCom automatically
258254
///
259255
case wpcomTempRedirectURL = "https://wordpress.com/mobile-redirect"

0 commit comments

Comments
 (0)