File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
WooCommerce/Classes/Bookings/BookingFilters Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -149,18 +149,20 @@ private extension SyncableListSelectorView {
149149 . frame ( width: emptyStateImageWidth * scale)
150150 . padding ( . bottom, viewPadding)
151151 . renderedIf ( viewModel. searchQuery. isNotEmpty)
152- Text ( syncable. emptyStateMessage)
153- . font ( . title2)
154- . fontWeight ( . semibold)
155- . foregroundStyle ( Color . primary)
156152
157- if viewModel. searchQuery. isNotEmpty,
158- let message = syncable. searchConfiguration? . emptySearchDescription {
159- Text ( message)
153+ if let configuration = syncable. searchConfiguration,
154+ viewModel. searchQuery. isNotEmpty {
155+ Text ( configuration. emptySearchTitle)
156+ . font ( . title2)
157+ . fontWeight ( . semibold)
158+ . foregroundStyle ( Color . primary)
159+ Text ( configuration. emptySearchDescription)
160160 . font ( . title3)
161161 . foregroundStyle ( Color . secondary)
162+ } else {
163+ Text ( syncable. emptyStateMessage)
164+ . secondaryBodyStyle ( )
162165 }
163-
164166 Spacer ( )
165167 }
166168 . multilineTextAlignment ( . center)
You can’t perform that action at this time.
0 commit comments