Fix embed logo links
This commit is contained in:
parent
d7d8d3516e
commit
bfb8f0dd28
2 changed files with 8 additions and 4 deletions
|
@ -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} />}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue