Skip to content

Commit 740da7f

Browse files
committed
Remove unnecessary HStack.
1 parent 63d769e commit 740da7f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

WooCommerce/Classes/POS/Presentation/CartView.swift

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ struct CartView: View {
3030
.foregroundColor(Color.posOnSurfaceVariantLowest)
3131
}
3232

33-
HStack {
34-
Button {
35-
posModel.removeAllItemsFromCart()
36-
} label: {
37-
Text(Localization.clearButtonTitle)
38-
}
39-
.buttonStyle(POSOutlinedButtonStyle(size: .extraSmall))
40-
.renderedIf(shouldShowClearCartButton)
33+
Button {
34+
posModel.removeAllItemsFromCart()
35+
} label: {
36+
Text(Localization.clearButtonTitle)
4137
}
38+
.buttonStyle(POSOutlinedButtonStyle(size: .extraSmall))
39+
.renderedIf(shouldShowClearCartButton)
4240
})
4341
.if(shouldApplyHeaderBottomShadow, transform: { $0.applyBottomShadow(backgroundColor: backgroundColor) })
4442

0 commit comments

Comments
 (0)