Make DebugPanel style customizable.

With this you can pass style to DebugPanel component.

```js
<DebugPanel style={{maxWidth: '50%'}}> </DebugPanel>
```
This commit is contained in:
Jason Als 2015-07-21 09:17:58 -04:00
parent b676d446f8
commit bc214a6691

View File

@ -42,7 +42,7 @@ export default class DebugPanel {
render() { render() {
return ( return (
<div style={this.props.getStyle(this.props)}> <div style={{...this.props.getStyle(this.props), ...this.props.style}}>
{this.props.children} {this.props.children}
</div> </div>
); );