Skip to content

Commit ba1e17a

Browse files
nhunzakerryanflorence
authored andcommitted
[change] that @mjackson style.
1 parent a0ce26b commit ba1e17a

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

modules/components/Redirect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ Redirect.propTypes = {
2020
};
2121

2222
// Redirects should not have a default handler
23-
Redirect.defaultProps = {}
23+
Redirect.defaultProps = {};
2424

2525
module.exports = Redirect;

modules/components/RouteHandler.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class RouteHandler extends React.Component {
1212

1313
getChildContext() {
1414
return {
15-
depth: this.context.depth + 1
15+
routeDepth: this.context.routeDepth + 1
1616
};
1717
}
1818

@@ -33,7 +33,7 @@ class RouteHandler extends React.Component {
3333
}
3434

3535
getRouteDepth() {
36-
return this.context.depth;
36+
return this.context.routeDepth;
3737
}
3838

3939
createChildRouteHandler(props) {
@@ -55,12 +55,12 @@ class RouteHandler extends React.Component {
5555
// https://github.com/babel/babel/issues/619
5656

5757
RouteHandler.contextTypes = {
58-
depth: PropTypes.number.isRequired,
58+
routeDepth: PropTypes.number.isRequired,
5959
router: PropTypes.router.isRequired
6060
};
6161

6262
RouteHandler.childContextTypes = {
63-
depth: PropTypes.number.isRequired
63+
routeDepth: PropTypes.number.isRequired
6464
};
6565

6666
module.exports = RouteHandler;

modules/createRouter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,13 @@ function createRouter(options) {
453453
return scrollBehavior;
454454
},
455455

456-
getRouteAtDepth: function (depth) {
456+
getRouteAtDepth: function (routeDepth) {
457457
var routes = state.routes;
458-
return routes && routes[depth];
458+
return routes && routes[routeDepth];
459459
},
460460

461-
setRouteComponentAtDepth: function (depth, component) {
462-
mountedComponents[depth] = component;
461+
setRouteComponentAtDepth: function (routeDepth, component) {
462+
mountedComponents[routeDepth] = component;
463463
},
464464

465465
/**
@@ -518,13 +518,13 @@ function createRouter(options) {
518518
},
519519

520520
childContextTypes: {
521-
depth: PropTypes.number.isRequired,
521+
routeDepth: PropTypes.number.isRequired,
522522
router: PropTypes.router.isRequired
523523
},
524524

525525
getChildContext: function () {
526526
return {
527-
depth: 1,
527+
routeDepth: 1,
528528
router: Router
529529
};
530530
},

0 commit comments

Comments
 (0)