fix: support option (rebase issues)

Fixes display on own claims + text on others.
This commit is contained in:
Thomas Zarebczan 2019-07-23 18:55:34 -04:00 committed by Sean Yesmunt
parent 5013f86332
commit afa3450eef
2 changed files with 12 additions and 13 deletions

View file

@ -105,8 +105,8 @@ class WalletSendTip extends React.PureComponent<Props, State> {
}
helper={
<React.Fragment>
{claimIsMine
? __('This will increase your overall bid amount for ')
{claimIsMine || isSupport
? __('This will increase the overall bid amount for ')
: __('This will appear as a tip for ')}
{`"${title}" which will boost its ability to be discovered while active.`}{' '}
<Button label={__('Learn more')} button="link" href="https://lbry.com/faq/tipping" />.

View file

@ -252,11 +252,10 @@ class FilePage extends React.Component<Props> {
icon={icons.TIP}
label={__('Tip')}
title={__('Send a tip to this creator')}
onClick={() => openModal(MODALS.SEND_TIP, { uri, claimIsMine })}
onClick={() => openModal(MODALS.SEND_TIP, { uri, claimIsMine, isSupport: false })}
/>
)}
{claimIsMine ||
(!claimIsMine && supportOption && (
{(claimIsMine || (!claimIsMine && supportOption)) && (
<Button
button="alt"
icon={icons.SUPPORT}
@ -264,7 +263,7 @@ class FilePage extends React.Component<Props> {
title={__('Support this claim')}
onClick={() => openModal(MODALS.SEND_TIP, { uri, claimIsMine, isSupport: true })}
/>
))}
)}
<Button
button="alt"
icon={icons.SHARE}