Fix: don't show empty state when loading

This commit is contained in:
Thomas Zarebczan 2019-11-14 14:00:47 -05:00
parent f445ee8b9c
commit 67ea0dc9b6
2 changed files with 3 additions and 6 deletions

View file

@ -39,6 +39,7 @@
"react/jsx-indent": 0,
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"react/no-unescaped-entities": 0,
"space-before-function-paren": [
"error",
{

View file

@ -133,11 +133,7 @@ function ClaimListDiscover(props: Props) {
<I18nMessage
tokens={{
trending: (
<Button
button="link"
label={__("trending for everyone")}
navigate={'/?type=trending&sort=everyone'}
/>
<Button button="link" label={__('trending for everyone')} navigate={'/?type=trending&sort=everyone'} />
),
discover: <Button button="link" label={__('discover some channels!')} navigate={'/$/following'} />,
}}
@ -177,7 +173,7 @@ function ClaimListDiscover(props: Props) {
</div>
);
const emptyState = personalSort === SEARCH_SORT_CHANNELS && !hasContent ? noChannels : noResults;
const emptyState = !loading && (personalSort === SEARCH_SORT_CHANNELS && !hasContent ? noChannels : noResults);
function getSearch() {
let search = `?`;