feat: replace http nostr links with native nostr links

closes #666
refactor: embeds
This commit is contained in:
2024-09-13 10:52:25 +01:00
parent dd7424f616
commit b5c106d579
13 changed files with 86 additions and 137 deletions

View File

@ -53,7 +53,7 @@ const TidalEmbed = ({ link }: { link: string }) => {
</a>
);
}
const iframe = (
return (
<iframe
src={source}
style={extraStyles}
@ -62,16 +62,9 @@ const TidalEmbed = ({ link }: { link: string }) => {
sandbox="allow-scripts allow-popups allow-forms allow-same-origin"
title="TIDAL Embed"
frameBorder={0}
loading="lazy"
/>
);
return (
<>
{iframe}
<a href={link} target="_blank" rel="noreferrer" onClick={e => e.stopPropagation()} className="ext">
{link}
</a>
</>
);
};
export default TidalEmbed;