Skip to content

Commit cc4cb33

Browse files
committed
Rename edit tap handler
1 parent 589f56f commit cc4cb33

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

WooCommerce/Classes/ViewRelated/Orders/Cells/SummaryTableViewCell.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ final class SummaryTableViewCell: UITableViewCell {
4545
}
4646
}
4747

48-
/// Closure to be executed whenever the pencil button is pressed.
48+
/// Closure to be executed whenever the edit button is tapped.
4949
///
50-
var onPencilTouchUp: (() -> Void)?
50+
var onEditTouchUp: (() -> Void)?
5151

5252
/// Displays the specified OrderStatus, and applies the right Label Style
5353
///
@@ -120,7 +120,7 @@ private extension SummaryTableViewCell {
120120
}
121121

122122
@objc func editWasTapped() {
123-
onPencilTouchUp?()
123+
onEditTouchUp?()
124124
}
125125
}
126126

WooCommerce/Classes/ViewRelated/Orders/OrderDetailsViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ private extension OrderDetailsViewController {
505505
func configureSummary(cell: SummaryTableViewCell) {
506506
cell.title = viewModel.summaryTitle
507507
cell.dateCreated = viewModel.summaryDateCreated
508-
cell.onPencilTouchUp = { [weak self] in
508+
cell.onEditTouchUp = { [weak self] in
509509
self?.displayOrderStatusList()
510510
}
511511

WooCommerce/WooCommerceTests/Views/SummaryTableViewCellTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class SummaryTableViewCellTests: XCTestCase {
3939

4040
func testTappingButtonExecutesCallback() {
4141
let expect = expectation(description: "The action assigned gets called")
42-
cell?.onPencilTouchUp = {
42+
cell?.onEditTouchUp = {
4343
expect.fulfill()
4444
}
4545

0 commit comments

Comments
 (0)