add missing tooltip for channel links
This commit is contained in:
parent
4ea43df42b
commit
6a02667095
1 changed files with 7 additions and 1 deletions
|
@ -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} />
|
||||
|
|
Loading…
Add table
Reference in a new issue