Only render search message if nothing is found
This commit is contained in:
@@ -265,11 +265,11 @@ export default function Search() {
|
|||||||
// ListFooterComponent={FooterComponent}
|
// ListFooterComponent={FooterComponent}
|
||||||
extraData={[searchTerm, albums]}
|
extraData={[searchTerm, albums]}
|
||||||
/>
|
/>
|
||||||
<FullSizeContainer>
|
{(searchTerm.length && !jellyfinResults.length && !fuseResults.length && !isLoading) ? (
|
||||||
{(searchTerm.length && !jellyfinResults.length && !fuseResults.length && !isLoading)
|
<FullSizeContainer>
|
||||||
? <Text style={{ textAlign: 'center', opacity: 0.5, fontSize: 18 }}>{t('no-results')}</Text>
|
<Text style={{ textAlign: 'center', opacity: 0.5, fontSize: 18 }}>{t('no-results')}</Text>
|
||||||
: null}
|
</FullSizeContainer>
|
||||||
</FullSizeContainer>
|
) : null}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user