Skip to content

Commit 29de489

Browse files
Aditya AgarwalAditya Agarwal
Aditya Agarwal
authored and
Aditya Agarwal
committed
router.jsx: Remove unnecessary parameter state and onEnter
This remove the warning `state is defined but never used`. Close: #137
1 parent f08f19b commit 29de489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/router.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import {parseRoute, buildRoute} from './route-utils';
2727
const routes = [
2828
// Redirect from `/dashboard` to `/`
2929
{ path: '/dashboard',
30-
onEnter: (state, replace) => browserHistory.push('/')
30+
onEnter: () => browserHistory.push('/')
3131
},
3232
{ path: '/',
3333
component: App,

0 commit comments

Comments
 (0)