From 809729d9818d115a52abf88a395a10eb301c25fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Mon, 6 Feb 2017 18:27:10 +0000 Subject: [PATCH] fix react-router breaking changes --- frontend/src/components/navigation/org.js | 6 +-- frontend/src/components/section/index.js | 6 +-- frontend/src/containers/app.js | 35 +++++++-------- frontend/src/containers/home/index.js | 13 +++--- .../src/containers/new-project/billing.js | 4 +- frontend/src/containers/new-project/index.js | 44 +++++++++---------- .../src/containers/new-project/new-billing.js | 4 +- .../src/containers/new-project/new-project.js | 4 +- frontend/src/containers/org/index.js | 28 +++++++----- frontend/src/containers/org/people.js | 6 +-- frontend/src/containers/org/projects.js | 17 +++---- frontend/src/containers/org/section.js | 4 +- frontend/src/containers/project/index.js | 20 ++++----- frontend/src/containers/project/instances.js | 4 +- frontend/src/containers/project/section.js | 6 +-- frontend/src/containers/project/services.js | 17 +++---- frontend/src/containers/projects/index.js | 15 ++++--- frontend/src/containers/service/index.js | 24 +++++----- frontend/src/containers/service/instances.js | 4 +- frontend/src/containers/service/metrics.js | 6 +-- frontend/src/containers/services/index.js | 8 ++-- frontend/src/root.js | 2 +- frontend/src/state/reducers/index.js | 1 + 23 files changed, 145 insertions(+), 133 deletions(-) diff --git a/frontend/src/components/navigation/org.js b/frontend/src/components/navigation/org.js index 09754983..64dcad75 100644 --- a/frontend/src/components/navigation/org.js +++ b/frontend/src/components/navigation/org.js @@ -16,7 +16,7 @@ const { } = ReactRedux; const { - Link, + NavLink } = ReactRouter; const { @@ -110,7 +110,7 @@ const OrgNavigation = ({ return ( - + { ({ isActive, @@ -134,7 +134,7 @@ const OrgNavigation = ({ } - + ); }); diff --git a/frontend/src/components/section/index.js b/frontend/src/components/section/index.js index 9105f140..4d3a28fc 100644 --- a/frontend/src/components/section/index.js +++ b/frontend/src/components/section/index.js @@ -18,7 +18,7 @@ const { } = ReactIntl; const { - Link + NavLink } = ReactRouter; const { @@ -43,9 +43,9 @@ const Section = (props) => { const navLinks = links.map((link) => ( - + - + )); diff --git a/frontend/src/containers/app.js b/frontend/src/containers/app.js index 34b33f80..e73d615b 100644 --- a/frontend/src/containers/app.js +++ b/frontend/src/containers/app.js @@ -23,8 +23,8 @@ const { } = ReactRedux; const { - Miss, - Match + Switch, + Route } = ReactRouter; const { @@ -80,19 +80,18 @@ const App = connect()(React.createClass({ } })); -module.exports = (props) => { - return ( - -
- - -
- - -
-