diff --git a/mpwo_client/package-lock.json b/mpwo_client/package-lock.json index 14dda483..89702d90 100644 --- a/mpwo_client/package-lock.json +++ b/mpwo_client/package-lock.json @@ -9332,9 +9332,14 @@ } }, "react-router-redux": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/react-router-redux/-/react-router-redux-4.0.8.tgz", - "integrity": "sha1-InQDWWtRUeGCN32rg1tdRfD4BU4=" + "version": "5.0.0-alpha.9", + "resolved": "https://registry.npmjs.org/react-router-redux/-/react-router-redux-5.0.0-alpha.9.tgz", + "integrity": "sha512-euSgNIANnRXr4GydIuwA7RZCefrLQzIw5WdXspS8NPYbV+FxrKSS9MKG7U9vb6vsKHONnA4VxrVNWfnMUnUQAw==", + "requires": { + "history": "4.7.2", + "prop-types": "15.6.0", + "react-router": "4.2.0" + } }, "react-scripts": { "version": "1.0.17", diff --git a/mpwo_client/package.json b/mpwo_client/package.json index 005a02d9..c7864fc8 100644 --- a/mpwo_client/package.json +++ b/mpwo_client/package.json @@ -8,7 +8,7 @@ "react-dom": "^16.2.0", "react-redux": "^5.0.6", "react-router-dom": "^4.2.2", - "react-router-redux": "^4.0.8", + "react-router-redux": "^5.0.0-alpha.9", "react-scripts": "1.0.17", "redux": "^3.7.2", "redux-thunk": "^2.2.0" diff --git a/mpwo_client/src/components/NavBar.jsx b/mpwo_client/src/components/NavBar.jsx index 42479f58..edf6dd68 100644 --- a/mpwo_client/src/components/NavBar.jsx +++ b/mpwo_client/src/components/NavBar.jsx @@ -1,4 +1,5 @@ import React from 'react' +import { Link } from 'react-router-dom' export default class NavBar extends React.Component { constructor(props) { @@ -26,7 +27,14 @@ export default class NavBar extends React.Component {
diff --git a/mpwo_client/src/components/Root.jsx b/mpwo_client/src/components/Root.jsx new file mode 100644 index 00000000..54f02b86 --- /dev/null +++ b/mpwo_client/src/components/Root.jsx @@ -0,0 +1,11 @@ +import React from 'react' +import { Provider } from 'react-redux' +import { ConnectedRouter } from 'react-router-redux' + +export default function Root({ store, history, children }) { + return ( +