We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08dc241 commit 7520370Copy full SHA for 7520370
modules/components/ContextWrapper.js
@@ -5,30 +5,13 @@
5
*/
6
7
var React = require('react');
8
-var PropTypes = require('../PropTypes');
9
10
class ContextWrapper extends React.Component {
11
12
- getChildContext() {
13
- return {
14
- router: this.context.router,
15
- routeDepth: this.context.routeDepth
16
- };
17
- }
18
-
19
render() {
20
return this.props.children;
21
}
22
-}
23
24
-ContextWrapper.contextTypes = {
25
- routeDepth: PropTypes.number.isRequired,
26
- router: PropTypes.router.isRequired
27
-};
28
29
-ContextWrapper.childContextTypes = {
30
31
32
+}
33
34
module.exports = ContextWrapper;
0 commit comments