show hyperlinks on hover

This commit is contained in:
btzr-io 2018-05-11 15:07:26 -06:00
parent 7977ac775f
commit 5b0f7c193d

View file

@ -33,7 +33,7 @@ class ExternalLink extends React.PureComponent<Props> {
element = ( element = (
<Button <Button
button="link" button="link"
title={title} title={title || href}
className="btn--external-link" className="btn--external-link"
onClick={() => openModal({ id: MODALS.CONFIRM_EXTERNAL_LINK }, { uri: href })} onClick={() => openModal({ id: MODALS.CONFIRM_EXTERNAL_LINK }, { uri: href })}
> >
@ -45,7 +45,11 @@ class ExternalLink extends React.PureComponent<Props> {
// Return local link if protocol is lbry uri // Return local link if protocol is lbry uri
if (protocol && protocol[0] === 'lbry:' && isURIValid(href)) { if (protocol && protocol[0] === 'lbry:' && isURIValid(href)) {
element = ( element = (
<Button button="link" title={title} onClick={() => navigate('/show', { uri: href })}> <Button
button="link"
title={title || href}
onClick={() => navigate('/show', { uri: href })}
>
{children} {children}
</Button> </Button>
); );