From 9311038fbb8dcd0cf9fb9b3f23dfa9fc7168e2b6 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Tue, 23 Jul 2019 16:13:06 -0400 Subject: [PATCH] final cleanup I know theres bugs but ship it --- package.json | 2 +- src/ui/analytics.js | 5 ++- src/ui/component/walletSendTip/view.jsx | 12 ++++--- src/ui/index.jsx | 3 +- src/ui/modal/modalError/view.jsx | 13 ++++++-- src/ui/modal/modalWalletEncrypt/view.jsx | 2 +- src/ui/page/settings/view.jsx | 3 +- src/ui/redux/actions/app.js | 1 + src/ui/scss/component/_media.scss | 3 +- static/locales/en.json | 41 ++++++++++++++++++++++-- yarn.lock | 4 +-- 11 files changed, 69 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index b8b90548b..bee1cd142 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "jsmediatags": "^3.8.1", "json-loader": "^0.5.4", "lbry-format": "https://github.com/lbryio/lbry-format.git", - "lbry-redux": "lbryio/lbry-redux#e550f0ff0448fcad5f3d0365ec7ad744376b41cf", + "lbry-redux": "lbryio/lbry-redux#885b4679ca1918076d64af063fda15608a52a5e5", "lbryinc": "lbryio/lbryinc#a93596c51c8fb0a226cb84df04c26a6bb60a45fb", "lint-staged": "^7.0.2", "localforage": "^1.7.1", diff --git a/src/ui/analytics.js b/src/ui/analytics.js index a30af33c6..b4c6f4f80 100644 --- a/src/ui/analytics.js +++ b/src/ui/analytics.js @@ -84,9 +84,8 @@ const analytics: Analytics = { tagFollowEvent: (tag, following, location) => { if (analyticsEnabled) { ReactGA.event({ - category: 'Tag', - action: following ? 'follow' : 'unfollow', - value: tag, + category: following ? 'Tag-Follow' : 'Tag-Unfollow', + action: tag, }); } }, diff --git a/src/ui/component/walletSendTip/view.jsx b/src/ui/component/walletSendTip/view.jsx index 6d3015e4f..569a29b31 100644 --- a/src/ui/component/walletSendTip/view.jsx +++ b/src/ui/component/walletSendTip/view.jsx @@ -9,7 +9,7 @@ type Props = { title: string, claim: StreamClaim, isPending: boolean, - sendSupport: (number, string, string) => void, + sendSupport: (number, string) => void, onCancel: () => void, sendTipCallback?: () => void, balance: number, @@ -71,7 +71,7 @@ class WalletSendTip extends React.PureComponent { } render() { - const { title, isPending, uri, onCancel, claimIsMine, isSupport } = this.props; + const { title, isPending, onCancel, claimIsMine, isSupport } = this.props; const { tipAmount, tipError } = this.state; return ( @@ -81,7 +81,10 @@ class WalletSendTip extends React.PureComponent { autoFocus name="tip-input" label={ - (tipAmount && tipAmount !== 0 && `Tip ${tipAmount.toFixed(8).replace(/\.?0+$/, '')} LBC`) || __('Amount') + (tipAmount && + tipAmount !== 0 && + `${isSupport ? __('Support') : __('Tip')} ${tipAmount.toFixed(8).replace(/\.?0+$/, '')} LBC`) || + __('Amount') } className="form-field--price-amount" error={tipError} @@ -93,6 +96,7 @@ class WalletSendTip extends React.PureComponent { inputButton={