housekeeping

This commit is contained in:
Sean Yesmunt 2019-08-21 14:22:51 -04:00
parent 8d7c1f5415
commit b0a34cfc46
5 changed files with 28 additions and 9 deletions

View file

@ -64,7 +64,7 @@
"@babel/preset-react": "^7.0.0", "@babel/preset-react": "^7.0.0",
"@babel/register": "^7.0.0", "@babel/register": "^7.0.0",
"@exponent/electron-cookies": "^2.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/color": "^1.0.2",
"@lbry/components": "^2.7.4", "@lbry/components": "^2.7.4",
"@reach/menu-button": "^0.1.18", "@reach/menu-button": "^0.1.18",

View file

@ -21,12 +21,12 @@ class FilePrice extends React.PureComponent<Props> {
showFullPrice: false, showFullPrice: false,
}; };
componentWillMount() { componentDidMount() {
this.fetchCost(this.props); this.fetchCost(this.props);
} }
componentWillReceiveProps(nextProps: Props) { componentDidUpdate() {
this.fetchCost(nextProps); this.fetchCost(this.props);
} }
fetchCost = (props: Props) => { fetchCost = (props: Props) => {

View file

@ -34,6 +34,14 @@ type Props = {
location: { pathname: string, search: string }, location: { pathname: string, search: string },
}; };
function SignInPage() {
return <h1>Sign In</h1>;
}
function SignUpPage() {
return <h1>Sign In</h1>;
}
function AppRouter(props: Props) { function AppRouter(props: Props) {
const { currentScroll } = props; const { currentScroll } = props;
@ -46,6 +54,8 @@ function AppRouter(props: Props) {
<Route path="/" exact component={DiscoverPage} /> <Route path="/" exact component={DiscoverPage} />
<Route path={`/$/${PAGES.DISCOVER}`} exact component={DiscoverPage} /> <Route path={`/$/${PAGES.DISCOVER}`} exact component={DiscoverPage} />
<Route path={`/$/${PAGES.AUTH}`} exact component={AuthPage} /> <Route path={`/$/${PAGES.AUTH}`} exact component={AuthPage} />
<Route path={`/$/${PAGES.AUTH}/signin`} exact component={SignInPage} />
<Route path={`/$/${PAGES.AUTH}/signup`} exact component={SignUpPage} />
<Route path={`/$/${PAGES.INVITE}`} exact component={InvitePage} /> <Route path={`/$/${PAGES.INVITE}`} exact component={InvitePage} />
<Route path={`/$/${PAGES.DOWNLOADED}`} exact component={FileListDownloaded} /> <Route path={`/$/${PAGES.DOWNLOADED}`} exact component={FileListDownloaded} />
<Route path={`/$/${PAGES.PUBLISHED}`} exact component={FileListPublished} /> <Route path={`/$/${PAGES.PUBLISHED}`} exact component={FileListPublished} />

View file

@ -101,6 +101,7 @@ let baseConfig = {
'lodash.isempty': 'lodash-es/isEmpty', 'lodash.isempty': 'lodash-es/isEmpty',
'lodash.forin': 'lodash-es/forIn', 'lodash.forin': 'lodash-es/forIn',
'lodash.clonedeep': 'lodash-es/cloneDeep', 'lodash.clonedeep': 'lodash-es/cloneDeep',
...ifProduction({}, { 'react-dom': '@hot-loader/react-dom' }),
}, },
}, },

View file

@ -862,15 +862,15 @@
tough-cookie "^2.2.2" tough-cookie "^2.2.2"
tough-cookie-web-storage-store "^1.0.0" tough-cookie-web-storage-store "^1.0.0"
"@hot-loader/react-dom@16.8": "@hot-loader/react-dom@^16.8":
version "16.8.6" version "16.9.0"
resolved "https://registry.yarnpkg.com/@hot-loader/react-dom/-/react-dom-16.8.6.tgz#7923ba27db1563a7cc48d4e0b2879a140df461ea" resolved "https://registry.yarnpkg.com/@hot-loader/react-dom/-/react-dom-16.9.0.tgz#7782cec9d78172f3e4c86a317ba7a73bd0271acd"
integrity sha512-+JHIYh33FVglJYZAUtRjfT5qZoT2mueJGNzU5weS2CVw26BgbxGKSujlJhO85BaRbg8sqNWyW1hYBILgK3ZCgA== integrity sha512-MsOdCBB7c5YNyB4iDDct+tS7AihvYyfwZVV+z/QnbTjPgxH98kqIDXO92nU7tLXp0OtYFErHZfcWjtszP/572w==
dependencies: dependencies:
loose-envify "^1.1.0" loose-envify "^1.1.0"
object-assign "^4.1.1" object-assign "^4.1.1"
prop-types "^15.6.2" prop-types "^15.6.2"
scheduler "^0.13.6" scheduler "^0.15.0"
"@lbry/color@^1.0.2": "@lbry/color@^1.0.2":
version "1.1.1" version "1.1.1"
@ -10550,6 +10550,14 @@ scheduler@^0.13.6:
loose-envify "^1.1.0" loose-envify "^1.1.0"
object-assign "^4.1.1" 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: schema-utils@^0.4.3:
version "0.4.7" version "0.4.7"
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.7.tgz#ba74f597d2be2ea880131746ee17d0a093c68187" resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-0.4.7.tgz#ba74f597d2be2ea880131746ee17d0a093c68187"