add missing tooltip for channel links

This commit is contained in:
Baltazar Gomez 2019-10-14 17:05:19 -06:00 committed by Sean Yesmunt
parent 4ea43df42b
commit 6a02667095

View file

@ -2,6 +2,7 @@
import * as React from 'react';
import Button from 'component/button';
import PreviewLink from 'component/previewLink';
import UriIndicator from 'component/uriIndicator';
type Props = {
uri: string,
@ -70,9 +71,14 @@ class ClaimLink extends React.Component<Props> {
return <span>{children}</span>;
}
const { name: claimName } = claim;
const { name: claimName, value_type: valueType } = claim;
const isChannel = valueType === 'channel';
const showPreview = autoEmbed === true && !isUnresolved;
if(isChannel){
return <UriIndicator uri={uri} link addTooltip />
}
return (
<React.Fragment>
<Button label={children} title={title || claimName} button={'link'} navigate={uri} className={className} />