From 2606758c0d5602bd20cc4fbba8f81d16d22f3892 Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 16 Feb 2022 10:53:40 -0300 Subject: [PATCH] Also hide discover but exclude tag params --- ui/component/router/view.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/component/router/view.jsx b/ui/component/router/view.jsx index 08d783b56..a02ec1f73 100644 --- a/ui/component/router/view.jsx +++ b/ui/component/router/view.jsx @@ -11,6 +11,7 @@ import { parseURI, isURIValid } from 'util/lbryURI'; import { SITE_TITLE, WELCOME_VERSION } from 'config'; import LoadingBarOneOff from 'component/loadingBarOneOff'; import { GetLinksData } from 'util/buildHomepage'; +import * as CS from 'constants/claim_search'; import HomePage from 'page/home'; @@ -177,6 +178,7 @@ function AppRouter(props: Props) { const urlParams = new URLSearchParams(search); const resetScroll = urlParams.get('reset_scroll'); const hasLinkedCommentInUrl = urlParams.get(LINKED_COMMENT_QUERY_PARAM); + const tagParams = urlParams.get(CS.TAGS_KEY); const isLargeScreen = useIsLargeScreen(); const homeCategoryPages = React.useMemo(() => { @@ -279,7 +281,8 @@ function AppRouter(props: Props) { - + + {(!wildWestDisabled || tagParams) && } {!wildWestDisabled && } {homeCategoryPages}