File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
WooCommerce/Classes/Bookings/BookingList Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,15 @@ 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)
2528 . tag ( tab)
2629 }
2730 }
2831 . tabViewStyle ( . page( indexDisplayMode: . never) )
2932 }
3033 . navigationTitle ( Localization . viewTitle)
31- . if ( isSearching, transform: { view in
32- view. searchable ( text: $viewModel. searchQuery,
33- isPresented: $isSearching,
34- prompt: Localization . searchPrompt)
35- } )
3634 . toolbar ( removing: . sidebarToggle)
3735 . toolbar {
3836 ToolbarItem ( placement: . confirmationAction) {
You can’t perform that action at this time.
0 commit comments