From b0a34cfc4611603638c156c21793acc87c6a4e00 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 21 Aug 2019 14:22:51 -0400 Subject: [PATCH] housekeeping --- package.json | 2 +- src/ui/component/filePrice/view.jsx | 6 +++--- src/ui/component/router/view.jsx | 10 ++++++++++ webpack.base.config.js | 1 + yarn.lock | 18 +++++++++++++----- 5 files changed, 28 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 7c6ffe853..3fdf2ca0e 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "@babel/preset-react": "^7.0.0", "@babel/register": "^7.0.0", "@exponent/electron-cookies": "^2.0.0", - "@hot-loader/react-dom": "16.8", + "@hot-loader/react-dom": "^16.8", "@lbry/color": "^1.0.2", "@lbry/components": "^2.7.4", "@reach/menu-button": "^0.1.18", diff --git a/src/ui/component/filePrice/view.jsx b/src/ui/component/filePrice/view.jsx index 91650b2cf..b7467021e 100644 --- a/src/ui/component/filePrice/view.jsx +++ b/src/ui/component/filePrice/view.jsx @@ -21,12 +21,12 @@ class FilePrice extends React.PureComponent { showFullPrice: false, }; - componentWillMount() { + componentDidMount() { this.fetchCost(this.props); } - componentWillReceiveProps(nextProps: Props) { - this.fetchCost(nextProps); + componentDidUpdate() { + this.fetchCost(this.props); } fetchCost = (props: Props) => { diff --git a/src/ui/component/router/view.jsx b/src/ui/component/router/view.jsx index 2bf080d8c..6656a9f23 100644 --- a/src/ui/component/router/view.jsx +++ b/src/ui/component/router/view.jsx @@ -34,6 +34,14 @@ type Props = { location: { pathname: string, search: string }, }; +function SignInPage() { + return

Sign In

; +} + +function SignUpPage() { + return

Sign In

; +} + function AppRouter(props: Props) { const { currentScroll } = props; @@ -46,6 +54,8 @@ function AppRouter(props: Props) { + + diff --git a/webpack.base.config.js b/webpack.base.config.js index 85ac9155d..d47071f96 100644 --- a/webpack.base.config.js +++ b/webpack.base.config.js @@ -101,6 +101,7 @@ let baseConfig = { 'lodash.isempty': 'lodash-es/isEmpty', 'lodash.forin': 'lodash-es/forIn', 'lodash.clonedeep': 'lodash-es/cloneDeep', + ...ifProduction({}, { 'react-dom': '@hot-loader/react-dom' }), }, }, diff --git a/yarn.lock b/yarn.lock index e6685f724..5080a2212 100644 --- a/yarn.lock +++ b/yarn.lock @@ -862,15 +862,15 @@ tough-cookie "^2.2.2" tough-cookie-web-storage-store "^1.0.0" -"@hot-loader/react-dom@16.8": - version "16.8.6" - resolved "https://registry.yarnpkg.com/@hot-loader/react-dom/-/react-dom-16.8.6.tgz#7923ba27db1563a7cc48d4e0b2879a140df461ea" - integrity sha512-+JHIYh33FVglJYZAUtRjfT5qZoT2mueJGNzU5weS2CVw26BgbxGKSujlJhO85BaRbg8sqNWyW1hYBILgK3ZCgA== +"@hot-loader/react-dom@^16.8": + version "16.9.0" + resolved "https://registry.yarnpkg.com/@hot-loader/react-dom/-/react-dom-16.9.0.tgz#7782cec9d78172f3e4c86a317ba7a73bd0271acd" + integrity sha512-MsOdCBB7c5YNyB4iDDct+tS7AihvYyfwZVV+z/QnbTjPgxH98kqIDXO92nU7tLXp0OtYFErHZfcWjtszP/572w== dependencies: loose-envify "^1.1.0" object-assign "^4.1.1" prop-types "^15.6.2" - scheduler "^0.13.6" + scheduler "^0.15.0" "@lbry/color@^1.0.2": version "1.1.1" @@ -10550,6 +10550,14 @@ scheduler@^0.13.6: loose-envify "^1.1.0" object-assign "^4.1.1" +scheduler@^0.15.0: + version "0.15.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.15.0.tgz#6bfcf80ff850b280fed4aeecc6513bc0b4f17f8e" + integrity sha512-xAefmSfN6jqAa7Kuq7LIJY0bwAPG3xlCj0HMEBQk1lxYiDKZscY2xJ5U/61ZTrYbmNQbXa+gc7czPkVo11tnCg== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + schema-utils@^0.4.3: version "0.4.7" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.7.tgz#ba74f597d2be2ea880131746ee17d0a093c68187"