Skip to content

Commit 3119db1

Browse files
committed
Render coupons with CouponRowView
1 parent c7e078c commit 3119db1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

WooCommerce/Classes/POS/Presentation/Item Selector/ItemList.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,8 @@ private struct ItemListRow: View {
120120
Button(action: {
121121
posModel.addToCart(item)
122122
}, label: {
123-
HStack {
124-
Text("Coupon:")
125-
Text(coupon.code)
126-
}
127-
.padding()
123+
CouponRowView(couponItem: .init(id: coupon.id,
124+
code: coupon.code))
128125
})
129126
}
130127
}

0 commit comments

Comments
 (0)