Skip to content

Commit

Permalink
Reverts change for the skip button
Browse files Browse the repository at this point in the history
  • Loading branch information
antonis committed Apr 19, 2022
1 parent 082306a commit 7a4701d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class SiteDesignSection: CategorySection {
class SiteDesignContentCollectionViewController: FilterableCategoriesViewController, UIPopoverPresentationControllerDelegate {
typealias TemplateGroup = SiteDesignRequest.TemplateGroup
private let templateGroups: [TemplateGroup] = [.stable, .singlePage]
private let isLastSiteCreationStep: Bool

let completion: SiteDesignStep.SiteDesignSelection
let restAPI = WordPressComRestApi.anonymousApi(userAgent: WPUserAgent.wordPress(), localeKey: WordPressComRestApi.LocaleKeyV2)
Expand Down Expand Up @@ -58,8 +57,8 @@ class SiteDesignContentCollectionViewController: FilterableCategoriesViewControl

init(_ completion: @escaping SiteDesignStep.SiteDesignSelection) {
self.completion = completion
self.isLastSiteCreationStep = ABTest.siteNameV1.variation == .treatment(nil) && FeatureFlag.siteName.enabled
let primaryButtonTitle = self.isLastSiteCreationStep ? NSLocalizedString("Create site", comment: "Title for the button to progress with creating the site with the selected design")
let isLastSiteCreationStep = ABTest.siteNameV1.variation == .treatment(nil) && FeatureFlag.siteName.enabled
let primaryButtonTitle = isLastSiteCreationStep ? NSLocalizedString("Create site", comment: "Title for the button to progress with creating the site with the selected design")
: NSLocalizedString("Choose", comment: "Title for the button to progress with the selected site homepage design")

super.init(
Expand Down Expand Up @@ -104,7 +103,7 @@ class SiteDesignContentCollectionViewController: FilterableCategoriesViewControl
}

private func configureSkipButton() {
let skip = UIBarButtonItem(title: self.isLastSiteCreationStep ? NSLocalizedString("Skip and create", comment: "Continue without making a selection") : NSLocalizedString("Skip", comment: "Continue without making a selection"), style: .done, target: self, action: #selector(skipButtonTapped))
let skip = UIBarButtonItem(title: NSLocalizedString("Skip", comment: "Continue without making a selection"), style: .done, target: self, action: #selector(skipButtonTapped))
navigationItem.rightBarButtonItem = skip
}

Expand Down

0 comments on commit 7a4701d

Please sign in to comment.