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 ( - -