From 0085e2a412ffae286fe52fa0d37f83bae2d9ccc7 Mon Sep 17 00:00:00 2001 From: bhawesh96 Date: Tue, 2 Oct 2018 14:57:32 +0530 Subject: [PATCH] src/router.jsx: Change browserHistory to history Closes https://github.com/coala/gh-board/issues/163 --- src/router.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router.jsx b/src/router.jsx index 27273401..31ca0c83 100644 --- a/src/router.jsx +++ b/src/router.jsx @@ -1,6 +1,6 @@ import React from 'react'; // eslint-disable-line import ReactDOM from 'react-dom'; -import {Router, browserHistory} from 'react-router'; +import {Router} from 'react-router'; import history from './history'; import App from './components/app'; @@ -27,7 +27,7 @@ import {parseRoute, buildRoute} from './route-utils'; const routes = [ // Redirect from `/dashboard` to `/` { path: '/dashboard', - onEnter: (state, replace) => browserHistory.push('/') + onEnter: (state, replace) => history.push('/') }, { path: '/', component: App,