Skip to content

Commit

Permalink
Merge pull request wordpress-mobile#21046 from wordpress-mobile/task/…
Browse files Browse the repository at this point in the history
…20763-blaze-campaigns-create-button

Blaze Manage Campaigns: "Create" bar button item
  • Loading branch information
momo-ozawa authored Jul 11, 2023
2 parents 09143b4 + ba5e5c2 commit 04cab47
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import WordPressFlux
final class BlazeCampaignsViewController: UIViewController, NoResultsViewHost, BlazeCampaignsStreamDelegate {
// MARK: - Views

private lazy var plusButton = UIBarButtonItem(
image: UIImage(systemName: "plus"),
private lazy var createButton = UIBarButtonItem(
title: Strings.createButtonTitle,
style: .plain,
target: self,
action: #selector(buttonCreateCampaignTapped)
Expand Down Expand Up @@ -169,7 +169,7 @@ final class BlazeCampaignsViewController: UIViewController, NoResultsViewHost, B

private func setupNavBar() {
title = Strings.navigationTitle
navigationItem.rightBarButtonItem = plusButton
navigationItem.rightBarButtonItem = createButton
}

private func setupNoResults() {
Expand Down Expand Up @@ -245,6 +245,7 @@ private extension BlazeCampaignsViewController {
enum Strings {
static let navigationTitle = NSLocalizedString("blaze.campaigns.title", value: "Blaze Campaigns", comment: "Title for the screen that allows users to manage their Blaze campaigns.")
static let promoteButtonTitle = NSLocalizedString("blaze.campaigns.promote.button.title", value: "Promote", comment: "Button title for the button that shows the Blaze flow when tapped.")
static let createButtonTitle = NSLocalizedString("blaze.campaigns.create.button.title", value: "Create", comment: "Button title for the button that shows the Blaze flow when tapped.")

enum NoResults {
static let loadingTitle = NSLocalizedString("blaze.campaigns.loading.title", value: "Loading campaigns...", comment: "Displayed while Blaze campaigns are being loaded.")
Expand Down

0 comments on commit 04cab47

Please sign in to comment.