Skip to content

Commit de7000a

Browse files
committed
fix: code style improvements
1 parent ef3407f commit de7000a

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,14 @@ struct AddEditCoupon: View {
5454
}
5555
.padding(.bottom, Constants.verticalSpacing)
5656

57-
HStack {
58-
Button {
59-
//TODO: handle action
60-
} label: {
61-
Text(Localization.regenerateCouponCodeButton)
62-
}
63-
.buttonStyle(LinkButtonStyle())
64-
.fixedSize()
65-
Spacer().frame(maxWidth: .infinity)
57+
Button {
58+
//TODO: handle action
59+
} label: {
60+
Text(Localization.regenerateCouponCodeButton)
6661
}
62+
.buttonStyle(LinkButtonStyle())
63+
.fixedSize()
64+
.frame(maxWidth: .infinity, alignment: .leading)
6765
.padding(.bottom, Constants.verticalSpacing)
6866

6967
Button {

0 commit comments

Comments
 (0)