show lbry link on share dialog for channels

This commit is contained in:
Sean Yesmunt 2020-08-20 21:54:05 -04:00
parent 082ee187da
commit 3ca847ece3
2 changed files with 21 additions and 24 deletions

View file

@ -195,7 +195,6 @@ const Header = (props: Props) => {
navigate={`/$/${PAGES.WALLET}`} navigate={`/$/${PAGES.WALLET}`}
className="header__navigation-item menu__title header__navigation-item--balance" className="header__navigation-item menu__title header__navigation-item--balance"
label={getWalletTitle()} label={getWalletTitle()}
disabled
// @if TARGET='app' // @if TARGET='app'
onDoubleClick={e => { onDoubleClick={e => {
e.stopPropagation(); e.stopPropagation();

View file

@ -132,29 +132,27 @@ function SocialShare(props: Props) {
href={`https://facebook.com/sharer/sharer.php?u=${encodedLbryURL}`} href={`https://facebook.com/sharer/sharer.php?u=${encodedLbryURL}`}
/> />
{webShareable && !isChannel && ( {webShareable && !isChannel && (
<React.Fragment> <Button
<Button className="share"
className="share" iconSize={24}
iconSize={24} icon={ICONS.EMBED}
icon={ICONS.EMBED} title={__('Embed this content')}
title={__('Embed this content')} onClick={() => {
onClick={() => { setShowEmbed(!showEmbed);
setShowEmbed(!showEmbed); setShowClaimLinks(false);
setShowClaimLinks(false); }}
}} />
/>
<Button
className="share"
iconSize={24}
icon={ICONS.SHARE_LINK}
title={__('Links')}
onClick={() => {
setShowClaimLinks(!showClaimLinks);
setShowEmbed(false);
}}
/>
</React.Fragment>
)} )}
<Button
className="share"
iconSize={24}
icon={ICONS.SHARE_LINK}
title={__('Links')}
onClick={() => {
setShowClaimLinks(!showClaimLinks);
setShowEmbed(false);
}}
/>
</div> </div>
{SUPPORTS_SHARE_API && isMobile && ( {SUPPORTS_SHARE_API && isMobile && (
@ -173,7 +171,7 @@ function SocialShare(props: Props) {
{showClaimLinks && ( {showClaimLinks && (
<div className="section"> <div className="section">
<CopyableText label={__('LBRY URL')} copyable={`lbry://${lbryUrl}`} /> <CopyableText label={__('LBRY URL')} copyable={`lbry://${lbryUrl}`} />
<CopyableText label={__('Download Link')} copyable={downloadUrl} /> {!isChannel && <CopyableText label={__('Download Link')} copyable={downloadUrl} />}
</div> </div>
)} )}
</React.Fragment> </React.Fragment>