Fix: don't show empty state when loading
This commit is contained in:
parent
f445ee8b9c
commit
67ea0dc9b6
2 changed files with 3 additions and 6 deletions
|
@ -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",
|
||||
{
|
||||
|
|
|
@ -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 = `?`;
|
||||
|
|
Loading…
Reference in a new issue