Skip to content

Commit ef3407f

Browse files
committed
feat: code style improvements
1 parent 51b6dee commit ef3407f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct AddEditCoupon: View {
3535
.subheadlineStyle()
3636
.padding(.horizontal, Constants.margin)
3737
}
38-
.padding([.bottom], Constants.verticalSpacing)
38+
.padding(.bottom, Constants.verticalSpacing)
3939

4040

4141
Group {
@@ -47,12 +47,12 @@ struct AddEditCoupon: View {
4747
keyboardType: .default)
4848
Divider()
4949
.padding(.leading, Constants.margin)
50-
.padding([.bottom], Constants.verticalSpacing)
50+
.padding(.bottom, Constants.verticalSpacing)
5151
Text(Localization.footerCouponCode)
5252
.subheadlineStyle()
5353
.padding(.horizontal, Constants.margin)
5454
}
55-
.padding([.bottom], Constants.verticalSpacing)
55+
.padding(.bottom, Constants.verticalSpacing)
5656

5757
HStack {
5858
Button {
@@ -64,7 +64,7 @@ struct AddEditCoupon: View {
6464
.fixedSize()
6565
Spacer().frame(maxWidth: .infinity)
6666
}
67-
.padding([.bottom], Constants.verticalSpacing)
67+
.padding(.bottom, Constants.verticalSpacing)
6868

6969
Button {
7070
//TODO: handle action
@@ -86,20 +86,20 @@ struct AddEditCoupon: View {
8686
Divider()
8787
.padding(.leading, Constants.margin)
8888
}
89-
.padding([.bottom], Constants.verticalSpacing)
89+
.padding(.bottom, Constants.verticalSpacing)
9090

9191
Group {
9292
TitleAndToggleRow(title: Localization.includeFreeShipping, isOn: .constant(false))
9393
.padding(.horizontal, Constants.margin)
9494
Divider()
9595
.padding(.leading, Constants.margin)
9696
}
97-
.padding([.bottom], Constants.verticalSpacing)
97+
.padding(.bottom, Constants.verticalSpacing)
9898
}
9999

100100
Group {
101101
ListHeaderView(text: Localization.headerApplyCouponTo.uppercased(), alignment: .left)
102-
.padding([.bottom], Constants.verticalSpacing)
102+
.padding(.bottom, Constants.verticalSpacing)
103103

104104
Button {
105105
//TODO: handle action
@@ -112,7 +112,7 @@ struct AddEditCoupon: View {
112112
}
113113
.buttonStyle(SecondaryButtonStyle())
114114
.padding(.horizontal, Constants.margin)
115-
.padding([.bottom], Constants.verticalSpacing)
115+
.padding(.bottom, Constants.verticalSpacing)
116116

117117
Button {
118118
//TODO: handle action
@@ -127,7 +127,7 @@ struct AddEditCoupon: View {
127127
.buttonStyle(SecondaryButtonStyle())
128128
.padding(.horizontal, Constants.margin)
129129
}
130-
.padding([.bottom], Constants.verticalSpacing)
130+
.padding(.bottom, Constants.verticalSpacing)
131131

132132
Group {
133133
ListHeaderView(text: Localization.headerUsageDetails.uppercased(), alignment: .left)
@@ -138,7 +138,7 @@ struct AddEditCoupon: View {
138138
Divider()
139139
.padding(.leading, Constants.margin)
140140
}
141-
.padding([.bottom], Constants.verticalSpacing)
141+
.padding(.bottom, Constants.verticalSpacing)
142142

143143
Button {
144144
//TODO: handle action

0 commit comments

Comments
 (0)