@@ -5,13 +5,13 @@ import struct Yosemite.POSOrderRefund
5
5
import enum Yosemite. OrderStatusEnum
6
6
import typealias Yosemite. OrderItemAttribute
7
7
8
- struct PointOfSaleOrderDetailsView : View {
8
+ struct POSOrderDetailsView : View {
9
9
let order : POSOrder
10
10
let onBack : ( ) -> Void
11
11
12
12
@Environment ( \. horizontalSizeClass) private var horizontalSizeClass
13
13
@Environment ( \. siteTimezone) private var siteTimezone
14
- @Environment ( PointOfSaleOrderListModel . self) private var orderListModel
14
+ @Environment ( POSOrderListModel . self) private var orderListModel
15
15
@State private var isShowingEmailReceiptView : Bool = false
16
16
17
17
private var shouldShowBackButton : Bool {
@@ -60,7 +60,7 @@ struct PointOfSaleOrderDetailsView: View {
60
60
61
61
// MARK: - Main Sections
62
62
63
- private extension PointOfSaleOrderDetailsView {
63
+ private extension POSOrderDetailsView {
64
64
@ViewBuilder
65
65
func productsSection( _ order: POSOrder ) -> some View {
66
66
VStack ( alignment: . leading, spacing: POSSpacing . medium) {
@@ -108,7 +108,7 @@ private extension PointOfSaleOrderDetailsView {
108
108
109
109
// MARK: - Header Components
110
110
111
- private extension PointOfSaleOrderDetailsView {
111
+ private extension POSOrderDetailsView {
112
112
@ViewBuilder
113
113
func headerBottomContent( for order: POSOrder ) -> some View {
114
114
VStack ( alignment: . leading, spacing: POSSpacing . xSmall) {
@@ -131,7 +131,7 @@ private extension PointOfSaleOrderDetailsView {
131
131
132
132
// MARK: - Product Components
133
133
134
- private extension PointOfSaleOrderDetailsView {
134
+ private extension POSOrderDetailsView {
135
135
@ViewBuilder
136
136
func productRow( item: POSOrderItem ) -> some View {
137
137
HStack ( alignment: . top, spacing: POSSpacing . medium) {
@@ -188,7 +188,7 @@ private extension PointOfSaleOrderDetailsView {
188
188
189
189
// MARK: - Totals Components
190
190
191
- private extension PointOfSaleOrderDetailsView {
191
+ private extension POSOrderDetailsView {
192
192
@ViewBuilder
193
193
func productsSubtotalRow( _ order: POSOrder ) -> some View {
194
194
totalsRow (
@@ -299,7 +299,7 @@ private extension PointOfSaleOrderDetailsView {
299
299
300
300
// MARK: - Actions
301
301
302
- private extension PointOfSaleOrderDetailsView {
302
+ private extension POSOrderDetailsView {
303
303
enum POSOrderDetailsAction : Identifiable , CaseIterable {
304
304
case emailReceipt
305
305
@@ -436,7 +436,7 @@ private enum Localization {
436
436
437
437
#if DEBUG
438
438
#Preview( " Order Details " ) {
439
- PointOfSaleOrderDetailsView (
439
+ POSOrderDetailsView (
440
440
order: POSPreviewHelpers . makePreviewOrder ( ) ,
441
441
onBack: { }
442
442
)
0 commit comments