mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
[Glitch] Fix media modal link button
Port ba745ca99a4ce4b953e11776827aabb68d621e79 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
68564a622c
commit
3c80b62045
@ -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>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user