Skip to content

Commit cd2c636

Browse files
committed
Add "Orders" option to the floating menu
1 parent fa5bebf commit cd2c636

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

WooCommerce/Classes/POS/Presentation/POSFloatingControlView.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,17 @@ struct POSFloatingControlView: View {
8686
)
8787
}
8888
}
89+
90+
if ServiceLocator.featureFlagService.isFeatureFlagEnabled(.pointOfSaleHistoricalOrdersi1) {
91+
Button {
92+
// TODO: WOOMOB-1133
93+
} label: {
94+
Label(
95+
title: { Text(Localization.orders) },
96+
icon: { Image(systemName: "text.document") }
97+
)
98+
}
99+
}
89100
} label: {
90101
VStack {
91102
Spacer()
@@ -161,6 +172,12 @@ private extension POSFloatingControlView {
161172
}
162173

163174
enum Localization {
175+
static let orders = NSLocalizedString(
176+
"pointOfSale.floatingButtons.orders.button.title",
177+
value: "Orders",
178+
comment: "The title of the menu button to access Point of Sale historical orders, shown in a fullscreen view."
179+
)
180+
164181
static let exitPointOfSale = NSLocalizedString(
165182
"pointOfSale.floatingButtons.exit.button.title",
166183
value: "Exit POS",

0 commit comments

Comments
 (0)