fix: support option (rebase issues)
Fixes display on own claims + text on others.
This commit is contained in:
parent
5013f86332
commit
afa3450eef
2 changed files with 12 additions and 13 deletions
|
@ -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" />.
|
||||
|
|
|
@ -252,19 +252,18 @@ 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)) && (
|
||||
<Button
|
||||
button="alt"
|
||||
icon={icons.SUPPORT}
|
||||
label={__('Support')}
|
||||
title={__('Support this claim')}
|
||||
onClick={() => openModal(MODALS.SEND_TIP, { uri, claimIsMine, isSupport: true })}
|
||||
/>
|
||||
)}
|
||||
{claimIsMine ||
|
||||
(!claimIsMine && supportOption && (
|
||||
<Button
|
||||
button="alt"
|
||||
icon={icons.SUPPORT}
|
||||
label={__('Support')}
|
||||
title={__('Support this claim')}
|
||||
onClick={() => openModal(MODALS.SEND_TIP, { uri, claimIsMine, isSupport: true })}
|
||||
/>
|
||||
))}
|
||||
<Button
|
||||
button="alt"
|
||||
icon={icons.SHARE}
|
||||
|
|
Loading…
Add table
Reference in a new issue