From d0586c937d50442327c8c6903b42cf04df9f839b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Daubensch=C3=BCtz?= Date: Mon, 25 Jan 2016 14:50:55 +0100 Subject: [PATCH] Comply to react-router's history changes --- js/history.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/history.js b/js/history.js index 903f2b73..5df05ccc 100644 --- a/js/history.js +++ b/js/history.js @@ -1,13 +1,12 @@ 'use strict'; -import useBasename from 'history/lib/useBasename'; +import { useRouterHistory } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; + import AppConstants from './constants/application_constants'; // Remove the trailing slash if present -let baseUrl = AppConstants.baseUrl.replace(/\/$/, ''); +let basename = AppConstants.baseUrl.replace(/\/$/, ''); -export default useBasename(createBrowserHistory)({ - basename: baseUrl -}); +export default useRouterHistory(createBrowserHistory)({ basename });