parent
a79fb080b0
commit
f3bad2e26f
1 changed files with 3 additions and 11 deletions
|
@ -131,17 +131,9 @@ export default class IconButton extends React.PureComponent {
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
|
|
||||||
if (href) {
|
if (href && !this.prop) {
|
||||||
return (
|
contents = (
|
||||||
<a
|
<a href={href} target='_blank' rel='noopener noreferrer'>
|
||||||
href={href}
|
|
||||||
aria-label={title}
|
|
||||||
title={title}
|
|
||||||
target='_blank'
|
|
||||||
rel='noopener noreferrer'
|
|
||||||
className={classes}
|
|
||||||
style={style}
|
|
||||||
>
|
|
||||||
{contents}
|
{contents}
|
||||||
</a>
|
</a>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue