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 958490b commit df16ebfCopy full SHA for df16ebf
1 file changed
src/app-canvas.jsx
@@ -16,26 +16,9 @@ let AppCanvas = React.createClass({
16
WebkitFontSmoothing: 'antialiased',
17
};
18
19
- let newChildren = React.Children.map(this.props.children, (currentChild) => {
20
- if (!currentChild) { // If undefined, skip it
21
- return null;
22
- }
23
-
24
- switch (currentChild.type.displayName) {
25
- case 'AppBar' :
26
- return React.cloneElement(currentChild, {
27
- style: this.mergeStyles({
28
- position: 'fixed',
29
- }, currentChild.props.style),
30
- });
31
- default:
32
- return currentChild;
33
34
- }, this);
35
36
return (
37
<div style={styles}>
38
- {newChildren}
+ {this.props.children}
39
</div>
40
);
41
},
0 commit comments