File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
WooCommerce/Classes/Bookings/BookingList Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,17 @@ struct BookingListContainerView: View {
2222 searchViewModel: viewModel. searchViewModel ( for: tab) ,
2323 selectedBooking: $selectedBooking
2424 )
25- . searchable ( text: $viewModel. searchQuery,
26- isPresented: $isSearching,
27- prompt: Localization . searchPrompt)
2825 . tag ( tab)
2926 }
3027 }
3128 . tabViewStyle ( . page( indexDisplayMode: . never) )
3229 }
3330 . navigationTitle ( Localization . viewTitle)
31+ . if ( isSearching, transform: { view in
32+ view. searchable ( text: $viewModel. searchQuery,
33+ isPresented: $isSearching,
34+ prompt: Localization . searchPrompt)
35+ } )
3436 . toolbar ( removing: . sidebarToggle)
3537 . toolbar {
3638 ToolbarItem ( placement: . confirmationAction) {
You can’t perform that action at this time.
0 commit comments