File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
WooCommerce/Classes/POS/Presentation/Settings Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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 ( ) )
You can’t perform that action at this time.
0 commit comments