fix page names
This commit is contained in:
parent
8f7aea9844
commit
d2a87f164a
4 changed files with 5 additions and 6 deletions
|
@ -139,7 +139,7 @@ class WunderBar extends React.PureComponent<Props, State> {
|
||||||
if (suggestion.type === SEARCH_TYPES.SEARCH) {
|
if (suggestion.type === SEARCH_TYPES.SEARCH) {
|
||||||
onSearch(query);
|
onSearch(query);
|
||||||
} else if (suggestion.type === SEARCH_TYPES.TAG) {
|
} else if (suggestion.type === SEARCH_TYPES.TAG) {
|
||||||
history.push(`/$/${PAGES.TAGS}?t=${suggestion.value}`);
|
history.push(`/$/${PAGES.DISCOVER}?t=${suggestion.value}`);
|
||||||
} else if (isURIValid(query)) {
|
} else if (isURIValid(query)) {
|
||||||
const uri = normalizeURI(query);
|
const uri = normalizeURI(query);
|
||||||
onSubmit(uri);
|
onSubmit(uri);
|
||||||
|
|
|
@ -19,7 +19,6 @@ exports.SHOW = 'show';
|
||||||
exports.ACCOUNT = 'account';
|
exports.ACCOUNT = 'account';
|
||||||
exports.SEARCH = 'search';
|
exports.SEARCH = 'search';
|
||||||
exports.TRANSACTIONS = 'transactions';
|
exports.TRANSACTIONS = 'transactions';
|
||||||
exports.TAGS = 'tagsdsfsdfdsf';
|
|
||||||
exports.TAGS_FOLLOWING = 'tags';
|
exports.TAGS_FOLLOWING = 'tags';
|
||||||
exports.DEPRECATED__TAGS_FOLLOWING = 'following/tags';
|
exports.DEPRECATED__TAGS_FOLLOWING = 'following/tags';
|
||||||
exports.TAGS_FOLLOWING_MANAGE = 'tags/manage';
|
exports.TAGS_FOLLOWING_MANAGE = 'tags/manage';
|
||||||
|
|
|
@ -61,7 +61,7 @@ function ChannelsFollowingDiscover(props: Props) {
|
||||||
if (followedTags.length > 0 && followedTags.length < 5) {
|
if (followedTags.length > 0 && followedTags.length < 5) {
|
||||||
const followedRows = followedTags.map((tag: Tag) => ({
|
const followedRows = followedTags.map((tag: Tag) => ({
|
||||||
title: `Trending Channels for #${toCapitalCase(tag.name)}`,
|
title: `Trending Channels for #${toCapitalCase(tag.name)}`,
|
||||||
link: `/$/${PAGES.TAGS}?t=${tag.name}&claim_type=channel`,
|
link: `/$/${PAGES.DISCOVER}?t=${tag.name}&claim_type=channel`,
|
||||||
options: {
|
options: {
|
||||||
claimType: 'channel',
|
claimType: 'channel',
|
||||||
pageSize: 4,
|
pageSize: 4,
|
||||||
|
|
|
@ -89,7 +89,7 @@ function HomePage(props: Props) {
|
||||||
if (followedTags.length > 0 && followedTags.length < 5) {
|
if (followedTags.length > 0 && followedTags.length < 5) {
|
||||||
const followedRows = followedTags.map((tag: Tag) => ({
|
const followedRows = followedTags.map((tag: Tag) => ({
|
||||||
title: `Trending for #${toCapitalCase(tag.name)}`,
|
title: `Trending for #${toCapitalCase(tag.name)}`,
|
||||||
link: `/$/${PAGES.TAGS}?t=${tag.name}`,
|
link: `/$/${PAGES.DISCOVER}?t=${tag.name}`,
|
||||||
options: {
|
options: {
|
||||||
pageSize: 4,
|
pageSize: 4,
|
||||||
tags: [tag.name],
|
tags: [tag.name],
|
||||||
|
@ -128,7 +128,7 @@ function HomePage(props: Props) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '#HomePageCageMatch',
|
title: '#HomePageCageMatch',
|
||||||
link: `/$/${PAGES.TAGS}?t=homepagecagematch&type=top&time=all`,
|
link: `/$/${PAGES.DISCOVER}?t=homepagecagematch&type=top&time=all`,
|
||||||
help: (
|
help: (
|
||||||
<div className="claim-grid__help">
|
<div className="claim-grid__help">
|
||||||
<Icon
|
<Icon
|
||||||
|
@ -156,7 +156,7 @@ function HomePage(props: Props) {
|
||||||
if (!showAuthenticatedRows) {
|
if (!showAuthenticatedRows) {
|
||||||
rowData.push({
|
rowData.push({
|
||||||
title: '#lbry',
|
title: '#lbry',
|
||||||
link: `/$/${PAGES.TAGS}?t=lbry&type=top&time=all`,
|
link: `/$/${PAGES.DISCOVER}?t=lbry&type=top&time=all`,
|
||||||
options: {
|
options: {
|
||||||
tags: ['lbry'],
|
tags: ['lbry'],
|
||||||
orderBy: ['effective_amount'],
|
orderBy: ['effective_amount'],
|
||||||
|
|
Loading…
Reference in a new issue