Fix embed end links

This commit is contained in:
Rafael 2022-03-28 15:37:16 -03:00 committed by Thomas Zarebczan
parent 157b6d3f19
commit f9d32abbf6

View file

@ -34,7 +34,7 @@ function FileViewerEmbeddedEnded(props: Props) {
const promptKey = promptKeys[Math.floor(Math.random() * promptKeys.length)]; const promptKey = promptKeys[Math.floor(Math.random() * promptKeys.length)];
// $FlowFixMe // $FlowFixMe
const prompt = prompts[promptKey]; const prompt = prompts[promptKey];
const lbrytvLink = `${URL}${formatLbryUrlForWeb(uri)}?src=${promptKey}`; const odyseeLink = `${URL}${formatLbryUrlForWeb(uri)}?src=${promptKey}`;
const showReplay = Boolean(window.player); const showReplay = Boolean(window.player);
return ( return (
@ -63,13 +63,13 @@ function FileViewerEmbeddedEnded(props: Props) {
)} )}
{!preferEmbed && ( {!preferEmbed && (
<> <>
<Button label={__('Discuss')} iconRight={ICONS.EXTERNAL} button="primary" href={lbrytvLink} /> <a target="_blank" rel="noopener noreferrer" href={odyseeLink}>
<Button label={__('Discuss')} iconRight={ICONS.EXTERNAL} button="primary" />
</a>
{!isAuthenticated && ( {!isAuthenticated && (
<Button <a target="_blank" rel="noopener noreferrer" href={`${URL}/$/signup?src=embed_signup`}>
label={__('Join %SITE_NAME%', { SITE_NAME })} <Button label={__('Join %SITE_NAME%', { SITE_NAME })} button="secondary" />
button="secondary" </a>
href={`${URL}/$/signup?src=embed_signup`}
/>
)} )}
</> </>
)} )}