Skip to content

Commit 88b35d8

Browse files
committed
Merge pull request #2470 from taion/remove-dead-prop
Fix prop types on route components
2 parents 96db725 + 92f9908 commit 88b35d8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/IndexRoute.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React, { Component } from 'react'
44
import { createRouteFromReactElement } from './RouteUtils'
55
import { component, components, falsy } from './PropTypes'
66

7-
const { bool, func } = React.PropTypes
7+
const { func } = React.PropTypes
88

99
/**
1010
* An <IndexRoute> is used to specify its parent's <Route indexRoute> in
@@ -26,9 +26,9 @@ class IndexRoute extends Component {
2626

2727
static propTypes = {
2828
path: falsy,
29-
ignoreScrollBehavior: bool,
3029
component,
3130
components,
31+
getComponent: func,
3232
getComponents: func
3333
}
3434

modules/Route.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React, { Component } from 'react'
33
import { createRouteFromReactElement } from './RouteUtils'
44
import { component, components } from './PropTypes'
55

6-
const { string, bool, func } = React.PropTypes
6+
const { string, func } = React.PropTypes
77

88
/**
99
* A <Route> is used to declare which components are rendered to the
@@ -21,9 +21,9 @@ class Route extends Component {
2121

2222
static propTypes = {
2323
path: string,
24-
ignoreScrollBehavior: bool,
2524
component,
2625
components,
26+
getComponent: func,
2727
getComponents: func
2828
}
2929

0 commit comments

Comments
 (0)