From 3516ef62ac5c58e86a57836ed86c2f8ac49f3fb0 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 4 Feb 2020 18:16:54 -0500 Subject: [PATCH] Revert "Fixes #3200 Claim previews right-clickable" This reverts commit 382b6fd6dc6dcbfad06e3c6373e23ffb9d97ac9b. --- ui/component/claimPreview/view.jsx | 18 ++++-------------- ui/scss/component/_claim-list.scss | 4 ---- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/ui/component/claimPreview/view.jsx b/ui/component/claimPreview/view.jsx index d30f5a9c8..57b0c293a 100644 --- a/ui/component/claimPreview/view.jsx +++ b/ui/component/claimPreview/view.jsx @@ -1,9 +1,9 @@ // @flow import type { Node } from 'react'; import React, { useEffect, forwardRef } from 'react'; -import { NavLink, withRouter } from 'react-router-dom'; import classnames from 'classnames'; import { parseURI, convertToShareLink } from 'lbry-redux'; +import { withRouter } from 'react-router-dom'; import { openCopyLinkMenu } from 'util/context-menu'; import { formatLbryUrlForWeb } from 'util/url'; import { isEmpty } from 'util/object'; @@ -102,12 +102,6 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => { const isChannel = isValid ? parseURI(uri).isChannel : false; const signingChannel = claim && claim.signing_channel; - const canonicalUrl = claim && claim.canonical_url; - const navigateUrl = canonicalUrl ? formatLbryUrlForWeb(canonicalUrl) : undefined; - const navLinkProps = { - to: navigateUrl, - onClick: e => e.stopPropagation(), - }; // do not block abandoned and nsfw claims if showUserBlocked is passed let shouldHide = @@ -168,7 +162,7 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => { } if (claim && !pending) { - history.push(navigateUrl || uri); + history.push(formatLbryUrlForWeb(claim.canonical_url ? claim.canonical_url : uri)); } } @@ -236,17 +230,13 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => { ) : ( - - - + )}
- - - + {!isChannel && }
diff --git a/ui/scss/component/_claim-list.scss b/ui/scss/component/_claim-list.scss index cf9529d5a..ba0b38221 100644 --- a/ui/scss/component/_claim-list.scss +++ b/ui/scss/component/_claim-list.scss @@ -106,10 +106,6 @@ height: 5rem; } } - - a { - color: inherit; - } } .claim-preview--large {