File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ var RESERVED_PROPS = {
62
62
* });
63
63
*/
64
64
var Route = React . createClass ( {
65
+
65
66
displayName : 'Route' ,
66
67
67
68
statics : {
@@ -72,23 +73,24 @@ var Route = React.createClass({
72
73
73
74
} ,
74
75
76
+ propTypes : {
77
+ preserveScrollPosition : React . PropTypes . bool . isRequired ,
78
+ handler : React . PropTypes . any . isRequired ,
79
+ path : React . PropTypes . string ,
80
+ name : React . PropTypes . string
81
+ } ,
82
+
75
83
getDefaultProps : function ( ) {
76
84
return {
77
85
preserveScrollPosition : false
78
86
} ;
79
87
} ,
80
88
81
- propTypes : {
82
- handler : React . PropTypes . any . isRequired ,
83
- path : React . PropTypes . string ,
84
- name : React . PropTypes . string ,
85
- preserveScrollPosition : React . PropTypes . bool
86
- } ,
87
-
88
89
render : function ( ) {
89
90
throw new Error (
90
91
'The <Route> component should not be rendered directly. You may be ' +
91
- 'missing a <Routes> wrapper around your list of routes.' ) ;
92
+ 'missing a <Routes> wrapper around your list of routes.'
93
+ ) ;
92
94
}
93
95
94
96
} ) ;
You can’t perform that action at this time.
0 commit comments