diff --git a/ui/component/inviteNew/view.jsx b/ui/component/inviteNew/view.jsx index 78b13336b..00944d830 100644 --- a/ui/component/inviteNew/view.jsx +++ b/ui/component/inviteNew/view.jsx @@ -11,7 +11,7 @@ import LbcSymbol from 'component/common/lbc-symbol'; type Props = { errorMessage: ?string, - inviteNew: string => void, + inviteNew: (string) => void, isPending: boolean, referralLink: string, referralCode: string, @@ -35,10 +35,10 @@ function InviteNew(props: Props) { const [referralSource, setReferralSource] = useState(referralCode); const handleReferralChange = React.useCallback( - code => { + (code) => { setReferralSource(code); // TODO: keep track of this in an array? - const matchingChannel = channels && channels.find(ch => ch.name === code); + const matchingChannel = channels && channels.find((ch) => ch.name === code); if (matchingChannel) { analytics.apiLogPublish(matchingChannel); } @@ -68,80 +68,85 @@ function InviteNew(props: Props) { }, [topChannel, handleReferralChange]); function lookupUrlByClaimName(name, channels) { - const claim = channels.find(channel => channel.name === name); + const claim = channels.find((channel) => channel.name === name); return claim && claim.canonical_url ? claim.canonical_url.replace('lbry://', '') : name; } return (
- }}> - Earn %lbc% for inviting subscribers, followers, fans, friends, etc. to join and follow you on %SITE_NAME%. - You can use invites just like affiliate links. - - } - actions={ - - - {channels && channels.length > 0 && ( - handleReferralChange(e.target.value)} - > - {channels.map(channel => ( - - ))} - - - )} - - } - /> - - }}> - Invite someone you know by email and earn %lbc% when they join %SITE_NAME%. - - } - actions={ - -
- - } - onChange={event => { - handleEmailChanged(event); - }} - /> -

- , - referral_faq_link:

); } diff --git a/ui/component/walletBalance/view.jsx b/ui/component/walletBalance/view.jsx index 71d4dba67..5288b63d5 100644 --- a/ui/component/walletBalance/view.jsx +++ b/ui/component/walletBalance/view.jsx @@ -65,127 +65,137 @@ const WalletBalance = (props: Props) => { return (
- } - subtitle={ - totalLocked > 0 ? ( - }}> - Your total balance. All of this is yours, but some %lbc% is in use on channels and content right now. - - ) : ( - {__('Your total balance.')} - ) - } - actions={ - <> -

- }}> - %lbc_amount% immediately spendable - -

- -

- , - }} - > - %lbc_amount% boosting content - -

- {detailsExpanded && ( -
-
-
- {__('...earned from others')} - ({__('Unlock to spend')}) -
-
- - {Boolean(tipsBalance) && ( -
- -
- {__('...on initial publishes')} - ({__('Delete or edit past content to spend')}) -
-
- -
- -
- {__('...supporting content')} - ({__('Delete supports to spend')}) -
-
- -
-
-
- )} - - {/* @if TARGET='app' */} - {hasSynced ? ( -

- {__('A backup of your wallet is synced with lbry.tv.')} - -

- ) : ( -

- {__('Your wallet is not currently synced with lbry.tv. You are in control of backing up your wallet.')} - -

- )} - {/* @endif */} -
-
- {(otherCount > WALLET_CONSOLIDATE_UTXOS || consolidateIsPending || consolidatingUtxos) && ( -

- doUtxoConsolidate()} - disabled={operationPending} - label={ - consolidateIsPending || consolidatingUtxos ? __('Consolidating...') : __('Consolidate Now') - } - /> - ), - help: , - }} - > - Your wallet has a lot of change lying around. Consolidating will speed up your transactions. This could - take some time. %now%%help% +

+ } + subtitle={ + totalLocked > 0 ? ( + }}> + Your total balance. All of this is yours, but some %lbc% is in use on channels and content right now. -

- )} - - } - /> + ) : ( + {__('Your total balance.')} + ) + } + actions={ + <> +

+ }}> + %lbc_amount% immediately spendable + +

- {/* fiat balance card */} - +

+ , + }} + > + %lbc_amount% boosting content + +

+ {detailsExpanded && ( +
+
+
+ {__('...earned from others')} + ({__('Unlock to spend')}) +
+
+ + {Boolean(tipsBalance) && ( +
+ +
+ {__('...on initial publishes')} + ({__('Delete or edit past content to spend')}) +
+
+ +
+ +
+ {__('...supporting content')} + ({__('Delete supports to spend')}) +
+
+ +
+
+
+ )} + + {/* @if TARGET='app' */} + {hasSynced ? ( +

+ {__('A backup of your wallet is synced with lbry.tv.')} + +

+ ) : ( +

+ {__( + 'Your wallet is not currently synced with lbry.tv. You are in control of backing up your wallet.' + )} + +

+ )} + {/* @endif */} +
+
+ {(otherCount > WALLET_CONSOLIDATE_UTXOS || consolidateIsPending || consolidatingUtxos) && ( +

+ doUtxoConsolidate()} + disabled={operationPending} + label={ + consolidateIsPending || consolidatingUtxos ? __('Consolidating...') : __('Consolidate Now') + } + /> + ), + help: , + }} + > + Your wallet has a lot of change lying around. Consolidating will speed up your transactions. This + could take some time. %now%%help% + +

+ )} + + } + /> +
+
+ {/* fiat balance card */} + +
); };