fixes no tags message
This commit is contained in:
parent
70eb909e94
commit
350bab2abc
2 changed files with 26 additions and 2 deletions
|
@ -898,5 +898,9 @@
|
|||
"Checking your publishes...": "Checking your publishes...",
|
||||
"Checking your publishes": "Checking your publishes",
|
||||
"Checking for channels": "Checking for channels",
|
||||
"files": "files"
|
||||
"files": "files",
|
||||
"Error Starting Up": "Error Starting Up",
|
||||
"Reach out to hello@lbry.com for help, or check out %help_link%.": "Reach out to hello@lbry.com for help, or check out %help_link%.",
|
||||
"You're not following any tags. Smash that %customize% button!": "You're not following any tags. Smash that %customize% button!",
|
||||
"customize": "customize"
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
// @flow
|
||||
import type { Node } from 'react';
|
||||
import * as PAGES from 'constants/pages';
|
||||
import React, { Fragment, useEffect, useState } from 'react';
|
||||
import { withRouter } from 'react-router';
|
||||
import { createNormalizedClaimSearchKey, MATURE_TAGS } from 'lbry-redux';
|
||||
|
@ -173,7 +174,26 @@ function ClaimListDiscover(props: Props) {
|
|||
</div>
|
||||
);
|
||||
|
||||
const emptyState = !loading && (personalSort === SEARCH_SORT_CHANNELS && !hasContent ? noChannels : noResults);
|
||||
const noTags = (
|
||||
<div>
|
||||
<p>
|
||||
<I18nMessage
|
||||
tokens={{
|
||||
customize: <Button
|
||||
button="link"
|
||||
navigate={`/$/${PAGES.FOLLOWING}`}
|
||||
label={__('customize')}
|
||||
/>,
|
||||
}}
|
||||
>
|
||||
You're not following any tags. Add tags above or smash that %customize% button!
|
||||
</I18nMessage>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
|
||||
const noFollowing = (personalSort === SEARCH_SORT_YOU && noTags) || (personalSort === SEARCH_SORT_CHANNELS && noChannels);
|
||||
const emptyState = !loading && !hasContent ? noFollowing : noResults;
|
||||
|
||||
function getSearch() {
|
||||
let search = `?`;
|
||||
|
|
Loading…
Add table
Reference in a new issue