Skip to content

Commit f1c9d47

Browse files
committed
update: divider in AddProductToOrder and AddProductVariationToOrder
1 parent 6cfc609 commit f1c9d47

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

WooCommerce/Classes/ViewRelated/Inbox/Inbox.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ struct Inbox: View {
2121
if #available(iOS 15.0, *) {
2222
// In order to show full-width separator, the default list separator is hidden and a `Divider` is shown inside the row.
2323
InboxNoteRow(viewModel: rowViewModel)
24-
.listRowSeparator(.hidden)
2524
} else {
2625
InboxNoteRow(viewModel: rowViewModel)
2726
}

WooCommerce/Classes/ViewRelated/Orders/Order Creation/ProductsSection/AddProductToOrder.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ struct AddProductToOrder: View {
2121
loadAction: viewModel.syncNextPage) {
2222
ForEach(viewModel.productRows) { rowViewModel in
2323
createProductRow(rowViewModel: rowViewModel)
24+
Divider().frame(height: Constants.dividerHeight)
2425
}
2526
}
2627
case .empty:
@@ -74,6 +75,10 @@ struct AddProductToOrder: View {
7475
}
7576

7677
private extension AddProductToOrder {
78+
enum Constants {
79+
static let dividerHeight: CGFloat = 1
80+
}
81+
7782
enum Localization {
7883
static let title = NSLocalizedString("Add Product", comment: "Title for the screen to add a product to an order")
7984
static let close = NSLocalizedString("Close", comment: "Text for the close button in the Add Product screen")

WooCommerce/Classes/ViewRelated/Orders/Order Creation/ProductsSection/AddProductVariationToOrder.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ struct AddProductVariationToOrder: View {
2525
viewModel.selectVariation(rowViewModel.productOrVariationID)
2626
isPresented.toggle()
2727
}
28+
Divider().frame(height: Constants.dividerHeight)
2829
}
2930
}
3031
case .empty:
@@ -64,6 +65,10 @@ struct AddProductVariationToOrder: View {
6465
}
6566

6667
private extension AddProductVariationToOrder {
68+
enum Constants {
69+
static let dividerHeight: CGFloat = 1
70+
}
71+
6772
enum Localization {
6873
static let emptyStateMessage = NSLocalizedString("No product variations found",
6974
comment: "Message displayed if there are no product variations for a product.")

0 commit comments

Comments
 (0)