From b1bca7982a4780c843e13c76b33f705a9b2ec456 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Thu, 8 Oct 2020 13:36:57 -0400 Subject: [PATCH] re-enable lbry:// link styles in comments will add support for odysee/lbry.tv once the style is finalized --- ui/component/claimLink/view.jsx | 21 ++++++--------------- ui/component/comment/view.jsx | 4 ++-- ui/component/previewLink/view.jsx | 18 +++++++++--------- ui/scss/component/_markdown-preview.scss | 11 +++++++++-- 4 files changed, 26 insertions(+), 28 deletions(-) diff --git a/ui/component/claimLink/view.jsx b/ui/component/claimLink/view.jsx index 4eb21ab98..067e4dc29 100644 --- a/ui/component/claimLink/view.jsx +++ b/ui/component/claimLink/view.jsx @@ -1,15 +1,12 @@ // @flow import * as React from 'react'; -import Button from 'component/button'; import PreviewLink from 'component/previewLink'; import UriIndicator from 'component/uriIndicator'; type Props = { uri: string, - title: ?string, claim: StreamClaim, children: React.Node, - className: ?string, autoEmbed: ?boolean, description: ?string, isResolvingUri: boolean, @@ -24,7 +21,6 @@ class ClaimLink extends React.Component { static defaultProps = { href: null, link: false, - title: null, thumbnail: null, autoEmbed: false, description: null, @@ -63,7 +59,7 @@ class ClaimLink extends React.Component { }; render() { - const { uri, claim, title, className, autoEmbed, children, isResolvingUri } = this.props; + const { uri, claim, autoEmbed, children, isResolvingUri } = this.props; const isUnresolved = (!isResolvingUri && !claim) || !claim; const isBlacklisted = this.isClaimBlackListed(); @@ -71,20 +67,15 @@ class ClaimLink extends React.Component { return {children}; } - const { name: claimName, value_type: valueType } = claim; + const { value_type: valueType } = claim; const isChannel = valueType === 'channel'; const showPreview = autoEmbed === true && !isUnresolved; - if(isChannel){ - return - } + if (isChannel) { + return ; + } - return ( - -