Back-port changes from Odysee to master
This commit is contained in:
parent
d362fe0d75
commit
3b960aa0a0
1 changed files with 13 additions and 5 deletions
|
@ -157,7 +157,13 @@ function WalletSendTip(props: Props) {
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Card
|
<Card
|
||||||
title={claimIsMine ? __('Boost your content') : isSupport ? __('Support this content') : __('Support')}
|
title={
|
||||||
|
claimIsMine
|
||||||
|
? __('Boost your content')
|
||||||
|
: isSupport
|
||||||
|
? __('Support this content')
|
||||||
|
: __('Support --[button to support a claim]--')
|
||||||
|
}
|
||||||
subtitle={
|
subtitle={
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
{isSupport
|
{isSupport
|
||||||
|
@ -203,7 +209,7 @@ function WalletSendTip(props: Props) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="section">
|
<div className="section">
|
||||||
{DEFAULT_TIP_AMOUNTS.map(amount => (
|
{DEFAULT_TIP_AMOUNTS.map((amount) => (
|
||||||
<Button
|
<Button
|
||||||
key={amount}
|
key={amount}
|
||||||
disabled={amount > balance}
|
disabled={amount > balance}
|
||||||
|
@ -229,7 +235,7 @@ function WalletSendTip(props: Props) {
|
||||||
label={__('Custom')}
|
label={__('Custom')}
|
||||||
onClick={() => setUseCustomTip(true)}
|
onClick={() => setUseCustomTip(true)}
|
||||||
/>
|
/>
|
||||||
{DEFAULT_TIP_AMOUNTS.some(val => val > balance) && (
|
{DEFAULT_TIP_AMOUNTS.some((val) => val > balance) && (
|
||||||
<Button
|
<Button
|
||||||
button="secondary"
|
button="secondary"
|
||||||
className="button-toggle-group-action"
|
className="button-toggle-group-action"
|
||||||
|
@ -262,7 +268,7 @@ function WalletSendTip(props: Props) {
|
||||||
type="number"
|
type="number"
|
||||||
placeholder="1.23"
|
placeholder="1.23"
|
||||||
value={customTipAmount}
|
value={customTipAmount}
|
||||||
onChange={event => handleCustomPriceChange(event)}
|
onChange={(event) => handleCustomPriceChange(event)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
@ -276,7 +282,9 @@ function WalletSendTip(props: Props) {
|
||||||
disabled={fetchingChannels || isPending || tipError || !tipAmount}
|
disabled={fetchingChannels || isPending || tipError || !tipAmount}
|
||||||
label={
|
label={
|
||||||
isSupport
|
isSupport
|
||||||
? __('Send Revocable Support')
|
? claimIsMine
|
||||||
|
? __('Boost This Video')
|
||||||
|
: __('Send Revocable Support')
|
||||||
: __('Send a %amount% Tip', { amount: tipAmount ? `${tipAmount} Credit` : '' })
|
: __('Send a %amount% Tip', { amount: tipAmount ? `${tipAmount} Credit` : '' })
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in a new issue