Skip to content

Commit b878b61

Browse files
committed
Add row for usage details screen
1 parent 503ee87 commit b878b61

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

WooCommerce/Classes/ViewRelated/Coupons/CouponDetails/CouponDetails.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,19 @@ struct CouponDetails: View {
122122
}
123123
}
124124
.background(Color(.listForeground))
125+
126+
Spacer().frame(height: Constants.margin)
127+
Divider()
128+
VStack {
129+
NavigationRow(content: {
130+
Text(Localization.usageDetails)
131+
.bodyStyle()
132+
}, action: {
133+
// TODO-5766: Add usage details screen
134+
}).padding(.horizontal, insets: geometry.safeAreaInsets)
135+
}
136+
.background(Color(.listForeground))
137+
Divider()
125138
}
126139
}
127140
.background(Color(.listBackground))
@@ -165,6 +178,7 @@ private extension CouponDetails {
165178
static let performance = NSLocalizedString("Performance", comment: "Title of the Performance section on Coupons Details screen")
166179
static let discountedOrders = NSLocalizedString("Discounted Orders", comment: "Title of the Discounted Orders label on Coupon Details screen")
167180
static let amount = NSLocalizedString("Amount", comment: "Title of the Amount label on Coupon Details screen")
181+
static let usageDetails = NSLocalizedString("Usage details", comment: "Title of the Usage details row in Coupon Details screen")
168182
}
169183

170184
struct DetailRow: Identifiable {

0 commit comments

Comments
 (0)