Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit f0eb204

Browse files
author
Krzysztof Jan Modras
authored
Search: remove 'no results' message when no quick search - fix #1150 (#1152)
1 parent ab579e2 commit f0eb204

File tree

1 file changed

+8
-6
lines changed
  • ReactNative/js/screens/SearchResults/components

1 file changed

+8
-6
lines changed

ReactNative/js/screens/SearchResults/components/Results.jsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class Results extends React.Component {
303303
/>
304304
</View>
305305
<>
306-
{results.length === 0 && (
306+
{Features.Search.QuickSearch.isEnabled && results.length === 0 && (
307307
<View style={styles.noResults}>
308308
<Text style={styles.noResultsText}>
309309
{t('Search.UI.NoResults')}
@@ -317,11 +317,13 @@ class Results extends React.Component {
317317
>
318318
<View style={styles.showMoreButtonWrapper}>
319319
<View style={styles.showMoreButton}>
320-
<NativeDrawable
321-
style={styles.footerIcon}
322-
source="nav-menu"
323-
color="#ffffff"
324-
/>
320+
{Features.Search.QuickSearch.isEnabled && (
321+
<NativeDrawable
322+
style={styles.footerIcon}
323+
source="nav-menu"
324+
color="#ffffff"
325+
/>
326+
)}
325327
<Text style={styles.footerText} allowFontScaling={false}>
326328
{t('Search.UI.Footer')}
327329
</Text>

0 commit comments

Comments
 (0)