Skip to content

Commit

Permalink
Search: remove 'no results' message when no quick search - fix #1150 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzysztof Jan Modras authored Jun 19, 2020
1 parent ab579e2 commit f0eb204
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ReactNative/js/screens/SearchResults/components/Results.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ class Results extends React.Component {
/>
</View>
<>
{results.length === 0 && (
{Features.Search.QuickSearch.isEnabled && results.length === 0 && (
<View style={styles.noResults}>
<Text style={styles.noResultsText}>
{t('Search.UI.NoResults')}
Expand All @@ -317,11 +317,13 @@ class Results extends React.Component {
>
<View style={styles.showMoreButtonWrapper}>
<View style={styles.showMoreButton}>
<NativeDrawable
style={styles.footerIcon}
source="nav-menu"
color="#ffffff"
/>
{Features.Search.QuickSearch.isEnabled && (
<NativeDrawable
style={styles.footerIcon}
source="nav-menu"
color="#ffffff"
/>
)}
<Text style={styles.footerText} allowFontScaling={false}>
{t('Search.UI.Footer')}
</Text>
Expand Down

0 comments on commit f0eb204

Please sign in to comment.