mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-30 04:03:53 +01:00
deps (maintenance): react router had a change in API ...
This commit is contained in:
parent
bd78594383
commit
5b2a0330b6
3 changed files with 10574 additions and 5 deletions
|
|
@ -2,8 +2,6 @@ import React from 'react'
|
|||
import { BrowserRouter, Route, IndexRoute } from 'react-router-dom'
|
||||
import { NotFoundPage, ConnectPage, HomePage, LogoutPage } from './pages/';
|
||||
import { Bundle, URL_HOME, URL_FILES, URL_VIEWER, URL_LOGIN, URL_LOGOUT } from './utilities/';
|
||||
import { createBrowserHistory } from 'history'
|
||||
|
||||
|
||||
const FilesPage = (props) => (
|
||||
<Bundle loader={import(/* webpackChunkName: "route" */ "./pages/filespage")} symbol="FilesPage">
|
||||
|
|
@ -19,7 +17,7 @@ const ViewerPage = (props) => (
|
|||
export default class AppRouter extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<BrowserRouter history={createBrowserHistory()}>
|
||||
<BrowserRouter>
|
||||
<div>
|
||||
<Route exact path="/" component={HomePage} />
|
||||
<Route path="/login" component={ConnectPage} />
|
||||
|
|
@ -31,4 +29,3 @@ export default class AppRouter extends React.Component {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
10573
package-lock.json
generated
Normal file
10573
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -31,7 +31,6 @@
|
|||
"ftp": "^0.3.10",
|
||||
"google-auth-library": "^0.10.0",
|
||||
"googleapis": "^19.0.0",
|
||||
"history": "^4.6.1",
|
||||
"multiparty": "^4.1.3",
|
||||
"node-ssh": "^4.2.2",
|
||||
"nodegit": "^0.18.3",
|
||||
|
|
|
|||
Loading…
Reference in a new issue