summaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/account
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2016-02-18 12:35:47 +0100
committerStas Vilchik <vilchiks@gmail.com>2016-02-18 12:36:38 +0100
commit86ab67c6f779e2cc92fb8ad6ac9904da6607eea5 (patch)
tree62dad69e8f9fe76332ea07efe998fcc2d41c808a /server/sonar-web/src/main/js/apps/account
parentd99c8ddaf68d4d04e6c498c273d4f71bbeb0a115 (diff)
downloadsonarqube-86ab67c6f779e2cc92fb8ad6ac9904da6607eea5.tar.gz
sonarqube-86ab67c6f779e2cc92fb8ad6ac9904da6607eea5.zip
upgrate react-router and history
Diffstat (limited to 'server/sonar-web/src/main/js/apps/account')
-rw-r--r--server/sonar-web/src/main/js/apps/account/app.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/account/app.js b/server/sonar-web/src/main/js/apps/account/app.js
index 8004bfda586..e4643b9349c 100644
--- a/server/sonar-web/src/main/js/apps/account/app.js
+++ b/server/sonar-web/src/main/js/apps/account/app.js
@@ -19,8 +19,8 @@
*/
import React from 'react';
import { render } from 'react-dom';
-import { Router, Route, IndexRoute, Redirect } from 'react-router';
-import { createHistory, useBasename } from 'history';
+import { Router, Route, IndexRoute, Redirect, useRouterHistory } from 'react-router';
+import { createHistory } from 'history';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';
@@ -35,7 +35,7 @@ import './styles/account.css';
window.sonarqube.appStarted.then(options => {
const el = document.querySelector(options.el);
- const history = useBasename(createHistory)({
+ const history = useRouterHistory(createHistory)({
basename: window.baseUrl + '/account'
});