Skip to content

Commit 22d6f8b

Browse files
committed
Clarify the OrderStatusPresentation property names
1 parent 1e9f186 commit 22d6f8b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

WooCommerce/Classes/ViewRelated/Orders/Order Details/Order Summary Section/SummaryTableViewCell.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import Yosemite
33
import Gridicons
44

55
struct OrderStatusPresentation {
6-
let status: OrderStatusEnum
7-
let statusName: String
6+
let style: OrderStatusEnum
7+
let title: String
88
}
99

1010
/// The ViewModel for `SummaryTableViewCell`.
@@ -29,8 +29,8 @@ struct SummaryTableViewCellViewModel {
2929
orderNumber = order.number
3030

3131
presentation = OrderStatusPresentation(
32-
status: status?.status ?? OrderStatusEnum(rawValue: order.statusKey),
33-
statusName: status?.name ?? order.statusKey
32+
style: status?.status ?? OrderStatusEnum(rawValue: order.statusKey),
33+
title: status?.name ?? order.statusKey
3434
)
3535

3636
self.calendar = calendar
@@ -97,8 +97,8 @@ final class SummaryTableViewCell: UITableViewCell {
9797
/// Displays the specified OrderStatus, and applies the right Label Style
9898
///
9999
private func display(presentation: OrderStatusPresentation) {
100-
paymentStatusLabel.applyStyle(for: presentation.status)
101-
paymentStatusLabel.text = presentation.statusName
100+
paymentStatusLabel.applyStyle(for: presentation.style)
101+
paymentStatusLabel.text = presentation.title
102102
}
103103

104104
// MARK: - Overridden Methods

0 commit comments

Comments
 (0)