File tree Expand file tree Collapse file tree 5 files changed +22
-7
lines changed
Modules/Sources/PointOfSale
Resources/Images.xcassets/pos-no-orders.imageset Expand file tree Collapse file tree 5 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ struct POSOrderListEmptyViewModel: POSListEmptyViewModelProtocol {
2121 }
2222
2323 var icon : Image {
24- PointOfSaleAssets . magnifierNotFound. decorativeImage
24+ isSearching ? PointOfSaleAssets . magnifierNotFound. decorativeImage : PointOfSaleAssets . noOrders . decorativeImage
2525 }
2626}
2727
@@ -33,15 +33,15 @@ private enum Localization {
3333 )
3434
3535 static let emptyOrdersSubtitle = NSLocalizedString (
36- " pos.orderListView.emptyOrdersSubtitle " ,
37- value: " Orders will appear here once you start processing sales on the POS ." ,
36+ " pos.orderListView.emptyOrdersSubtitle2 " ,
37+ value: " Explore how you can increase your store sales ." ,
3838 comment: " Subtitle appearing when there are no orders to display. "
3939 )
4040
4141 static let emptyOrdersButtonTitle = NSLocalizedString (
42- " pos.orderListView.emptyOrdersButtonTitle " ,
43- value: " Refresh " ,
44- comment: " Button text for refreshing orders when list is empty. "
42+ " pos.orderListView.emptyOrdersButtonTitle2 " ,
43+ value: " Learn more " ,
44+ comment: " Button text for opening an information view when orders when list is empty. "
4545 )
4646
4747 static let emptyOrdersSearchTitle = NSLocalizedString (
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ enum PointOfSaleAssets: CaseIterable {
2020 case netum1228BCHIDBarcode
2121 case netum1228BCPairBarcode
2222 case testEan13Barcode
23+ case noOrders
2324
2425 var image : Image {
2526 Image ( imageName, bundle: . module)
@@ -67,6 +68,8 @@ enum PointOfSaleAssets: CaseIterable {
6768 " netum-1228bc-hid-barcode "
6869 case . netum1228BCPairBarcode:
6970 " netum-1228bc-pair-barcode "
71+ case . noOrders:
72+ " pos-no-orders "
7073 }
7174 }
7275}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ struct POSListEmptyView: View {
6868 } , label: {
6969 Text ( buttonTitle)
7070 } )
71- . buttonStyle ( POSOutlinedButtonStyle ( size: . normal) )
71+ . buttonStyle ( POSFilledButtonStyle ( size: . normal) )
7272 . frame ( width: viewWidth / 2 )
7373 . padding ( [ . leading, . trailing] )
7474 }
Original file line number Diff line number Diff line change 1+ {
2+ "images" : [
3+ {
4+ "filename" : " pos-no-orders.pdf" ,
5+ "idiom" : " universal"
6+ }
7+ ],
8+ "info" : {
9+ "author" : " xcode" ,
10+ "version" : 1
11+ }
12+ }
You can’t perform that action at this time.
0 commit comments