Skip to content

Commit 8d9ea22

Browse files
committed
update: property labels
1 parent 0db372d commit 8d9ea22

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct AddEditCoupon: View {
2222
ListHeaderView(text: Localization.headerCouponDetails.uppercased(), alignment: .left)
2323

2424
Group {
25-
TitleAndTextFieldRow(title: viewModel.amountText,
25+
TitleAndTextFieldRow(title: viewModel.amountLabel,
2626
placeholder: "0",
2727
text: $viewModel.amountField,
2828
editable: true,
@@ -31,7 +31,7 @@ struct AddEditCoupon: View {
3131
Divider()
3232
.padding(.leading, Constants.margin)
3333

34-
Text(viewModel.amountSubtitleText)
34+
Text(viewModel.amountSubtitleLabel)
3535
.subheadlineStyle()
3636
.padding(.horizontal, Constants.margin)
3737
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class AddEditCouponViewModel: ObservableObject {
2424

2525
/// Text representing the label of the amount field, localized based on discount type.
2626
///
27-
var amountText: String {
27+
var amountLabel: String {
2828
switch discountType {
2929
case .percent:
3030
return Localization.amountPercent
@@ -35,7 +35,7 @@ final class AddEditCouponViewModel: ObservableObject {
3535

3636
/// Text representing the label of the amount textfield subtitle, localized based on discount type.
3737
///
38-
var amountSubtitleText: String {
38+
var amountSubtitleLabel: String {
3939
switch discountType {
4040
case .percent:
4141
return Localization.amountPercentSubtitle

0 commit comments

Comments
 (0)