From d2a87f164aea58e2379dffb5b8ebbc2430a769c3 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 28 Feb 2020 10:11:55 -0500 Subject: [PATCH] fix page names --- ui/component/wunderbar/view.jsx | 2 +- ui/constants/pages.js | 1 - ui/page/channelsFollowingDiscover/view.jsx | 2 +- ui/page/home/view.jsx | 6 +++--- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ui/component/wunderbar/view.jsx b/ui/component/wunderbar/view.jsx index 7fdcd0a9a..31164df0c 100644 --- a/ui/component/wunderbar/view.jsx +++ b/ui/component/wunderbar/view.jsx @@ -139,7 +139,7 @@ class WunderBar extends React.PureComponent { if (suggestion.type === SEARCH_TYPES.SEARCH) { onSearch(query); } 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)) { const uri = normalizeURI(query); onSubmit(uri); diff --git a/ui/constants/pages.js b/ui/constants/pages.js index 537d667e1..5ad175a65 100644 --- a/ui/constants/pages.js +++ b/ui/constants/pages.js @@ -19,7 +19,6 @@ exports.SHOW = 'show'; exports.ACCOUNT = 'account'; exports.SEARCH = 'search'; exports.TRANSACTIONS = 'transactions'; -exports.TAGS = 'tagsdsfsdfdsf'; exports.TAGS_FOLLOWING = 'tags'; exports.DEPRECATED__TAGS_FOLLOWING = 'following/tags'; exports.TAGS_FOLLOWING_MANAGE = 'tags/manage'; diff --git a/ui/page/channelsFollowingDiscover/view.jsx b/ui/page/channelsFollowingDiscover/view.jsx index 6ad5f7fba..a78dcb590 100644 --- a/ui/page/channelsFollowingDiscover/view.jsx +++ b/ui/page/channelsFollowingDiscover/view.jsx @@ -61,7 +61,7 @@ function ChannelsFollowingDiscover(props: Props) { if (followedTags.length > 0 && followedTags.length < 5) { const followedRows = followedTags.map((tag: Tag) => ({ 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: { claimType: 'channel', pageSize: 4, diff --git a/ui/page/home/view.jsx b/ui/page/home/view.jsx index 6aa0bd958..78847dcfc 100644 --- a/ui/page/home/view.jsx +++ b/ui/page/home/view.jsx @@ -89,7 +89,7 @@ function HomePage(props: Props) { if (followedTags.length > 0 && followedTags.length < 5) { const followedRows = followedTags.map((tag: Tag) => ({ title: `Trending for #${toCapitalCase(tag.name)}`, - link: `/$/${PAGES.TAGS}?t=${tag.name}`, + link: `/$/${PAGES.DISCOVER}?t=${tag.name}`, options: { pageSize: 4, tags: [tag.name], @@ -128,7 +128,7 @@ function HomePage(props: Props) { }, { title: '#HomePageCageMatch', - link: `/$/${PAGES.TAGS}?t=homepagecagematch&type=top&time=all`, + link: `/$/${PAGES.DISCOVER}?t=homepagecagematch&type=top&time=all`, help: (