Skip to content

Commit 51b6dee

Browse files
committed
feat: added image "plus" to the description button
1 parent 4c2f541 commit 51b6dee

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

WooCommerce/Classes/ViewRelated/Coupons/Add and Edit Coupons/AddEditCoupon.swift

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@ struct AddEditCoupon: View {
6969
Button {
7070
//TODO: handle action
7171
} label: {
72-
Text(Localization.addDescriptionButton)
73-
.bodyStyle()
72+
HStack {
73+
Image(uiImage: .plusImage)
74+
Text(Localization.addDescriptionButton)
75+
.bodyStyle()
76+
}
7477
}
7578
.buttonStyle(SecondaryButtonStyle())
7679
.padding(.horizontal, Constants.margin)
@@ -192,7 +195,7 @@ private extension AddEditCoupon {
192195
"Regenerate Coupon Code",
193196
comment: "Button in the view for adding or editing a coupon.")
194197
static let addDescriptionButton = NSLocalizedString(
195-
"+ Add Description (Optional)",
198+
"Add Description (Optional)",
196199
comment: "Button for adding a description to a coupon in the view for adding or editing a coupon.")
197200
static let couponExpiryDate = NSLocalizedString(
198201
"Coupon Expiry Date",

0 commit comments

Comments
 (0)