[Glitch] Fix media modal link button

Port ba745ca99a to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
master
Claire 2022-08-25 04:30:53 +02:00
parent 68564a622c
commit 3c80b62045
1 changed files with 3 additions and 11 deletions

View File

@ -139,17 +139,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>
); );