Skip to content

Commit 39526ed

Browse files
committed
Rename enum Strings to Links
1 parent 6ba4b5c commit 39526ed

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

WooCommerce/Classes/Authentication/Navigation Exceptions/JetpackSetupRequiredViewModel.swift

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ struct JetpackSetupRequiredViewModel: ULErrorViewModel {
7373
)
7474

7575
mutableAttributedText.setAsLink(textToFind: Localization.termsOfService,
76-
linkURL: Strings.jetpackTermsURL + self.siteURL)
76+
linkURL: Links.jetpackTerms + self.siteURL)
7777
mutableAttributedText.setAsLink(textToFind: Localization.shareDetails,
78-
linkURL: Strings.jetpackShareDetailsURL + self.siteURL)
78+
linkURL: Links.jetpackShareDetails + self.siteURL)
7979
return mutableAttributedText
8080
}
8181

@@ -117,11 +117,13 @@ extension JetpackSetupRequiredViewModel {
117117
static let setupErrorMessage = NSLocalizedString(
118118
"To use this app for %@ you'll need the free Jetpack plugin installed and connected on your store.",
119119
comment: "Error message on the Jetpack setup required screen." +
120-
"Reads like: To use this app for test.com you'll need...")
120+
"Reads like: To use this app for test.com you'll need..."
121+
)
121122
static let connectionErrorMessage = NSLocalizedString(
122123
"To use this app for %@ you'll need to connect your store to Jetpack.",
123124
comment: "Error message on the Jetpack setup required screen when Jetpack connection is missing." +
124-
"Reads like: To use this app for test.com you'll need...")
125+
"Reads like: To use this app for test.com you'll need..."
126+
)
125127
static let setupSubtitle = NSLocalizedString(
126128
"You’ll need your store credentials to begin the installation.",
127129
comment: "Subtitle on the Jetpack setup required screen"
@@ -134,7 +136,8 @@ extension JetpackSetupRequiredViewModel {
134136
static let termsContent = NSLocalizedString(
135137
"By tapping the Connect Jetpack button, you agree to our %1$@ and to %2$@ with WordPress.com.",
136138
comment: "Content of the label at the end of the Jetpack setup required screen. " +
137-
"Reads like: By tapping the Connect Jetpack button, you agree to our Terms of Service and to share details with WordPress.com.")
139+
"Reads like: By tapping the Connect Jetpack button, you agree to our Terms of Service and to share details with WordPress.com."
140+
)
138141
static let termsOfService = NSLocalizedString(
139142
"Terms of Service",
140143
comment: "The terms to be agreed upon when tapping the Connect Jetpack button on the Jetpack setup required screen."
@@ -145,8 +148,8 @@ extension JetpackSetupRequiredViewModel {
145148
)
146149
}
147150

148-
enum Strings {
149-
static let jetpackTermsURL = "https://jetpack.com/redirect/?source=wpcom-tos&site="
150-
static let jetpackShareDetailsURL = "https://jetpack.com/redirect/?source=jetpack-support-what-data-does-jetpack-sync&site="
151+
enum Links {
152+
static let jetpackTerms = "https://jetpack.com/redirect/?source=wpcom-tos&site="
153+
static let jetpackShareDetails = "https://jetpack.com/redirect/?source=jetpack-support-what-data-does-jetpack-sync&site="
151154
}
152155
}

0 commit comments

Comments
 (0)