diff --git a/flow-typed/18nj.js b/flow-typed/18nj.js new file mode 100644 index 000000000..de97c0c86 --- /dev/null +++ b/flow-typed/18nj.js @@ -0,0 +1,2 @@ +// @flow +declare function __(a: string, b?: {}): string; diff --git a/package.json b/package.json index d4c5a1018..023f643a5 100644 --- a/package.json +++ b/package.json @@ -128,8 +128,8 @@ "husky": "^0.14.3", "json-loader": "^0.5.4", "lbry-format": "https://github.com/lbryio/lbry-format.git", - "lbry-redux": "lbryio/lbry-redux#42bf926138872d14523be7191694309be4f37605", - "lbryinc": "lbryio/lbryinc#368040d64658cf2a4b8a7a6725ec1787329ce65d", + "lbry-redux": "lbryio/lbry-redux#04ae0913a444abac200731c7ed53796d763a0bbb", + "lbryinc": "lbryio/lbryinc#a44576194e1f5f60e37d328ddfdca40bd6165c2d", "lint-staged": "^7.0.2", "localforage": "^1.7.1", "lodash-es": "^4.17.14", diff --git a/src/ui/component/app/index.js b/src/ui/component/app/index.js index 187ff8e7f..a7e13ac13 100644 --- a/src/ui/component/app/index.js +++ b/src/ui/component/app/index.js @@ -22,10 +22,8 @@ const perform = dispatch => ({ fetchTransactions: () => dispatch(doFetchTransactions()), fetchAccessToken: () => dispatch(doFetchAccessToken()), fetchChannelListMine: () => dispatch(doFetchChannelListMine()), - onSignedIn: () => dispatch(doSignIn()), + signIn: () => dispatch(doSignIn()), requestDownloadUpgrade: () => dispatch(doDownloadUpgradeRequested()), - fetchChannelListMine: () => dispatch(doFetchChannelListMine()), - onSignedIn: () => dispatch(doSignIn()), }); export default hot( diff --git a/src/ui/component/app/view.jsx b/src/ui/component/app/view.jsx index 6125ce56e..37c02008b 100644 --- a/src/ui/component/app/view.jsx +++ b/src/ui/component/app/view.jsx @@ -28,7 +28,7 @@ type Props = { fetchTransactions: () => void, fetchAccessToken: () => void, fetchChannelListMine: () => void, - onSignedIn: () => void, + signIn: () => void, requestDownloadUpgrade: () => void, fetchChannelListMine: () => void, onSignedIn: () => void, @@ -45,7 +45,7 @@ function App(props: Props) { user, fetchAccessToken, fetchChannelListMine, - onSignedIn, + signIn, autoUpdateDownloaded, isUpgradeAvailable, requestDownloadUpgrade, @@ -96,7 +96,7 @@ function App(props: Props) { if (previousHasVerifiedEmail === false && hasVerifiedEmail) { analytics.emailVerifiedEvent(); } - }, [previousHasVerifiedEmail, hasVerifiedEmail, onSignedIn]); + }, [previousHasVerifiedEmail, hasVerifiedEmail, signIn]); useEffect(() => { if (previousRewardApproved === false && isRewardApproved) { @@ -107,9 +107,9 @@ function App(props: Props) { // Keep this at the end to ensure initial setup effects are run first useEffect(() => { if (!previousHasVerifiedEmail && hasVerifiedEmail) { - onSignedIn(); + signIn(); } - }, [previousHasVerifiedEmail, hasVerifiedEmail, onSignedIn]); + }, [previousHasVerifiedEmail, hasVerifiedEmail, signIn]); if (!user) { return null; diff --git a/src/ui/component/errorBoundary/view.jsx b/src/ui/component/errorBoundary/view.jsx index ef73ff085..d48766ed3 100644 --- a/src/ui/component/errorBoundary/view.jsx +++ b/src/ui/component/errorBoundary/view.jsx @@ -75,16 +75,14 @@ class ErrorBoundary extends React.Component { title={__('Aw shucks!')} subtitle={ -

- {__("There was an error. It's been reported and will be fixed")}. {__('Try')}{' '} -