Skip to content

Commit dc2ab7c

Browse files
authored
Merge pull request #992 from woocommerce/issue/990-tacking-order
Change order of sections in Order Details screen
2 parents af1bf3c + 87eb749 commit dc2ab7c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

WooCommerce/Classes/ViewRelated/Orders/OrderDetailsViewController.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -257,15 +257,6 @@ private extension OrderDetailsViewController {
257257
return Section(title: Title.product, rightTitle: Title.quantity, rows: rows)
258258
}()
259259

260-
let tracking: Section? = {
261-
guard orderTracking.count > 0 else {
262-
return nil
263-
}
264-
265-
let rows: [Row] = Array(repeating: .tracking, count: orderTracking.count)
266-
return Section(title: Title.tracking, rows: rows)
267-
}()
268-
269260
let customerNote: Section? = {
270261
guard viewModel.customerNote.isEmpty == false else {
271262
return nil
@@ -297,12 +288,21 @@ private extension OrderDetailsViewController {
297288

298289
let payment = Section(title: Title.payment, row: .payment)
299290

291+
let tracking: Section? = {
292+
guard orderTracking.count > 0 else {
293+
return nil
294+
}
295+
296+
let rows: [Row] = Array(repeating: .tracking, count: orderTracking.count)
297+
return Section(title: Title.tracking, rows: rows)
298+
}()
299+
300300
let notes: Section = {
301301
let rows = [.addOrderNote] + Array(repeating: Row.orderNote, count: orderNotes.count)
302302
return Section(title: Title.notes, rows: rows)
303303
}()
304304

305-
sections = [summary, products, tracking, customerNote, customerInformation, payment, notes].compactMap { $0 }
305+
sections = [summary, products, customerNote, customerInformation, payment, tracking, notes].compactMap { $0 }
306306
}
307307
}
308308

0 commit comments

Comments
 (0)