Skip to content

Commit 415261d

Browse files
committed
Style tweaks
1 parent 6afc69f commit 415261d

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

modules/components/Route.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ var RESERVED_PROPS = {
6262
* });
6363
*/
6464
var Route = React.createClass({
65+
6566
displayName: 'Route',
6667

6768
statics: {
@@ -72,23 +73,24 @@ var Route = React.createClass({
7273

7374
},
7475

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+
7583
getDefaultProps: function () {
7684
return {
7785
preserveScrollPosition: false
7886
};
7987
},
8088

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-
8889
render: function () {
8990
throw new Error(
9091
'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+
);
9294
}
9395

9496
});

0 commit comments

Comments
 (0)