Fix embed logo links

This commit is contained in:
Rafael 2022-05-05 09:39:49 -03:00 committed by Thomas Zarebczan
parent d7d8d3516e
commit bfb8f0dd28
2 changed files with 8 additions and 4 deletions

View file

@ -4,7 +4,6 @@ import Button from 'component/button';
import FilePrice from 'component/filePrice';
import { formatLbryUrlForWeb } from 'util/url';
import { withRouter } from 'react-router';
import { URL } from 'config';
import Logo from 'component/logo';
type Props = {
@ -24,7 +23,7 @@ function FileViewerEmbeddedTitle(props: Props) {
}
const contentLinkProps = isInApp ? { navigate: contentLink } : { href: contentLink };
const lbryLinkProps = isInApp ? { navigate: '/' } : { href: URL };
const odyseeLinkProps = isInApp ? { navigate: '/' } : { href: '/' };
return (
<div className="file-viewer__embedded-header">
@ -44,7 +43,12 @@ function FileViewerEmbeddedTitle(props: Props) {
)}
<div className="file-viewer__embedded-info">
<Button className="file-viewer__overlay-logo" disabled={preferEmbed} aria-label={__('Home')} {...lbryLinkProps}>
<Button
className="file-viewer__overlay-logo"
disabled={preferEmbed}
aria-label={__('Home')}
{...odyseeLinkProps}
>
<Logo type={'embed'} />
</Button>
{isInApp && <FilePrice uri={uri} />}

View file

@ -44,7 +44,7 @@ function FileViewerEmbeddedEnded(props: Props) {
return (
<div className="file-viewer__overlay">
<div className="file-viewer__overlay-secondary">
<Button className="file-viewer__overlay-logo" href={URL} disabled={preferEmbed}>
<Button className="file-viewer__overlay-logo" href="/" disabled={preferEmbed}>
<Logo type={'embed'} />
</Button>
</div>