Skip to content

Commit

Permalink
src/router.jsx: Change browserHistory to history
Browse files Browse the repository at this point in the history
Closes #163
  • Loading branch information
bhawesh96 committed Oct 3, 2018
1 parent f08f19b commit 0085e2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/router.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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,
Expand Down

0 comments on commit 0085e2a

Please sign in to comment.