Skip to content

Commit ffc3a14

Browse files
committed
Update PointOfSaleOrderDetailsView.swift
1 parent 3c8b718 commit ffc3a14

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

WooCommerce/Classes/POS/Presentation/Orders/PointOfSaleOrderDetailsView.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ private extension PointOfSaleOrderDetailsView {
5151

5252
VStack(spacing: POSSpacing.small) {
5353
ForEach(order.lineItems, id: \.itemID) { item in
54-
productRow(item: item, order: order)
54+
productRow(item: item)
5555
}
5656
}
5757
}
@@ -114,7 +114,7 @@ private extension PointOfSaleOrderDetailsView {
114114

115115
private extension PointOfSaleOrderDetailsView {
116116
@ViewBuilder
117-
func productRow(item: POSOrderItem, order: POSOrder) -> some View {
117+
func productRow(item: POSOrderItem) -> some View {
118118
HStack(alignment: .top, spacing: POSSpacing.medium) {
119119
productImageView(for: item)
120120
productDetailsView(item: item)
@@ -126,12 +126,12 @@ private extension PointOfSaleOrderDetailsView {
126126

127127
@ViewBuilder
128128
func productImageView(for item: POSOrderItem) -> some View {
129-
POSItemImageView(imageSource: imageSource(for: item), imageSize: 40, scale: 1)
129+
POSItemImageView(imageSource: imageSource(), imageSize: 40, scale: 1)
130130
.frame(width: 40, height: 40)
131131
.clipShape(RoundedRectangle(cornerRadius: POSCornerRadiusStyle.small.value))
132132
}
133133

134-
func imageSource(for item: POSOrderItem) -> String? {
134+
func imageSource() -> String? {
135135
// TODO: Will be addressed in the following PR
136136
return nil
137137
}
@@ -230,7 +230,7 @@ private extension PointOfSaleOrderDetailsView {
230230
func refundsSection(_ order: POSOrder) -> some View {
231231
if !order.refunds.isEmpty {
232232
ForEach(order.refunds, id: \.refundID) { refund in
233-
refundRow(refund: refund, order: order)
233+
refundRow(refund: refund)
234234
}
235235

236236
if let netAmount = order.formattedNetAmount {
@@ -240,7 +240,7 @@ private extension PointOfSaleOrderDetailsView {
240240
}
241241

242242
@ViewBuilder
243-
func refundRow(refund: POSOrderRefund, order: POSOrder) -> some View {
243+
func refundRow(refund: POSOrderRefund) -> some View {
244244
VStack(alignment: .leading, spacing: POSSpacing.xSmall) {
245245
totalsRow(
246246
title: Localization.refundLabel,

0 commit comments

Comments
 (0)