Fix embed end links
This commit is contained in:
parent
157b6d3f19
commit
f9d32abbf6
1 changed files with 7 additions and 7 deletions
|
@ -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`}
|
|
||||||
/>
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue