EmbeddedStatus: open URL in new tab on click

This commit is contained in:
Alex Gleason 2022-08-21 13:54:59 -04:00
parent 9fb9523a4e
commit 7f7f9a6fae
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 8 additions and 3 deletions

View File

@ -45,11 +45,16 @@ const EmbeddedStatus: React.FC<IEmbeddedStatus> = ({ params }) => {
};
return (
<div className='bg-white dark:bg-gray-800 pointer-events-none'>
<div className='p-4 sm:p-6 max-w-3xl'>
<a
className='bg-white dark:bg-gray-800'
href={status?.url || '#'}
onClick={e => e.stopPropagation()}
target='_blank'
>
<div className='p-4 sm:p-6 max-w-3xl pointer-events-none'>
{renderInner()}
</div>
</div>
</a>
);
};