Fix missing repost ribbon for Tags
Ribbon: - hide: category pages, except Wild West - show: Following, Tags, Wild West
This commit is contained in:
parent
a6106f7427
commit
20b5653f95
1 changed files with 2 additions and 1 deletions
|
@ -54,6 +54,7 @@ function DiscoverPage(props: Props) {
|
||||||
const isHovering = useHover(buttonRef);
|
const isHovering = useHover(buttonRef);
|
||||||
const isMobile = useIsMobile();
|
const isMobile = useIsMobile();
|
||||||
const isWildWest = dynamicRouteProps && dynamicRouteProps.id === 'WILD_WEST';
|
const isWildWest = dynamicRouteProps && dynamicRouteProps.id === 'WILD_WEST';
|
||||||
|
const isCategory = Boolean(dynamicRouteProps);
|
||||||
|
|
||||||
const urlParams = new URLSearchParams(search);
|
const urlParams = new URLSearchParams(search);
|
||||||
const langParam = urlParams.get(CS.LANGUAGE_KEY) || null;
|
const langParam = urlParams.get(CS.LANGUAGE_KEY) || null;
|
||||||
|
@ -61,7 +62,7 @@ function DiscoverPage(props: Props) {
|
||||||
const tagsQuery = urlParams.get('t') || null;
|
const tagsQuery = urlParams.get('t') || null;
|
||||||
const tags = tagsQuery ? tagsQuery.split(',') : null;
|
const tags = tagsQuery ? tagsQuery.split(',') : null;
|
||||||
const repostedClaimIsResolved = repostedUri && repostedClaim;
|
const repostedClaimIsResolved = repostedUri && repostedClaim;
|
||||||
const hideRepostRibbon = !isWildWest;
|
const hideRepostRibbon = isCategory && !isWildWest;
|
||||||
|
|
||||||
// Eventually allow more than one tag on this page
|
// Eventually allow more than one tag on this page
|
||||||
// Restricting to one to make follow/unfollow simpler
|
// Restricting to one to make follow/unfollow simpler
|
||||||
|
|
Loading…
Reference in a new issue