{menuOpts.map(this.renderSection)}
- {React.Children.map(
- this.props.children,
- (child, i) =>
- child === null ||
- this.state.group !== child.props.group ||
- this.state.panel !== child.props.name
- ? null
- : cloneElement(child, {key: i})
+ {React.Children.map(this.props.children, (child, i) =>
+ child === null ||
+ this.state.group !== child.props.group ||
+ this.state.panel !== child.props.name
+ ? null
+ : cloneElement(child, {key: i})
)}