mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
remove unused conditional
This commit is contained in:
parent
9d6bc66eae
commit
13f49cd169
1 changed files with 222 additions and 244 deletions
|
@ -405,30 +405,7 @@ function WalletSendTip(props: Props) {
|
||||||
return (
|
return (
|
||||||
<Form onSubmit={handleSubmit}>
|
<Form onSubmit={handleSubmit}>
|
||||||
{/* if there is no LBC balance, show user frontend to get credits */}
|
{/* if there is no LBC balance, show user frontend to get credits */}
|
||||||
{1 === 2 ? (
|
{/* if there is lbc, the main tip/boost gui with the 3 tabs at the top */}
|
||||||
<Card
|
|
||||||
title={<I18nMessage tokens={{ lbc: <LbcSymbol size={22} /> }}>Supporting content requires %lbc%</I18nMessage>}
|
|
||||||
subtitle={
|
|
||||||
<I18nMessage tokens={{ lbc: <LbcSymbol /> }}>
|
|
||||||
With %lbc%, you can send tips to your favorite creators, or help boost their content for more people to
|
|
||||||
see.
|
|
||||||
</I18nMessage>
|
|
||||||
}
|
|
||||||
actions={
|
|
||||||
<div className="section__actions">
|
|
||||||
<Button
|
|
||||||
icon={ICONS.REWARDS}
|
|
||||||
button="primary"
|
|
||||||
label={__('Earn Rewards')}
|
|
||||||
navigate={`/$/${PAGES.REWARDS}`}
|
|
||||||
/>
|
|
||||||
<Button icon={ICONS.BUY} button="secondary" label={__('Buy/Swap Credits')} navigate={`/$/${PAGES.BUY}`} />
|
|
||||||
<Button button="link" label={__('Nevermind')} onClick={closeModal} />
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
) : (
|
|
||||||
// if there is lbc, the main tip/boost gui with the 3 tabs at the top
|
|
||||||
<Card
|
<Card
|
||||||
title={<LbcSymbol postfix={claimIsMine ? __('Boost Your %claimTypeText%', {claimTypeText}) : __('Support This %claimTypeText%', {claimTypeText})} size={22} />}
|
title={<LbcSymbol postfix={claimIsMine ? __('Boost Your %claimTypeText%', {claimTypeText}) : __('Support This %claimTypeText%', {claimTypeText})} size={22} />}
|
||||||
subtitle={
|
subtitle={
|
||||||
|
@ -639,7 +616,9 @@ function WalletSendTip(props: Props) {
|
||||||
) : (
|
) : (
|
||||||
<div className="help">{__('The payment will be made from your saved card')}</div>
|
<div className="help">{__('The payment will be made from your saved card')}</div>
|
||||||
)}
|
)}
|
||||||
</> : <>
|
</>
|
||||||
|
// if it's LBC and there is no balance, you can prompt to purchase LBC
|
||||||
|
: <>
|
||||||
<Card
|
<Card
|
||||||
title={<I18nMessage tokens={{ lbc: <LbcSymbol size={22} /> }}>Supporting content requires %lbc%</I18nMessage>}
|
title={<I18nMessage tokens={{ lbc: <LbcSymbol size={22} /> }}>Supporting content requires %lbc%</I18nMessage>}
|
||||||
subtitle={
|
subtitle={
|
||||||
|
@ -664,7 +643,6 @@ function WalletSendTip(props: Props) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue