diff options
| author | Haishan <[email protected]> | 2018-10-23 22:43:12 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2018-10-23 22:43:12 +0800 |
| commit | 09c6bf12e93ba265898c46f00bc73891cb2896dd (patch) | |
| tree | 44ebd4dbd4d67cc97f70235c68747b6f3066d98a /src/components/Root.js | |
| parent | 580a61687ba137734d80589319f127539657a443 (diff) | |
deps: get rid of the deprecated react-router-redux
Diffstat (limited to 'src/components/Root.js')
| -rw-r--r-- | src/components/Root.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/Root.js b/src/components/Root.js index 90144ff..7c6622a 100644 --- a/src/components/Root.js +++ b/src/components/Root.js @@ -1,8 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; -import { ConnectedRouter } from 'react-router-redux'; -import { Route } from 'react-router-dom'; +import { Router, Route } from 'react-router-dom'; import { hot } from 'react-hot-loader'; import SideBar from 'c/SideBar'; @@ -33,7 +32,7 @@ import s0 from './Root.module.scss'; const Root = ({ store, history }) => ( <Provider store={store}> - <ConnectedRouter history={history}> + <Router history={history}> <div className={s0.app}> <APIDiscovery /> <Route path="/" component={SideBar} /> @@ -45,7 +44,7 @@ const Root = ({ store, history }) => ( <Route exact path="/proxies" component={Proxies} /> </div> </div> - </ConnectedRouter> + </Router> </Provider> ); // <Route exact path="/__0" component={StyleGuide} /> |
