var React = require('react');
var Component = require('../component');

module.exports = Component({
  name: 'StaticContainer',

  propTypes: {
    children: React.PropTypes.element.isRequired
  },

  getDefaultProps() {
    return {
      update: false
    };
  },

  shouldComponentUpdate(nextProps) {
    return nextProps.update ||
      (this.props.staticKey !== nextProps.staticKey);
  },

  render() {
    if (this.props.fullscreen)
      this.addStyles('fullscreen');

    return (
      <div {...this.props}>
        {this.props.children}
      </div>
    );
  }
});
var React = require('react');
var Component = require('../component');

module.exports = Component({
  name: 'StaticContainer',

  propTypes: {
    children: React.PropTypes.element.isRequired
  },

  getDefaultProps() {
    return {
      update: false
    };
  },

  shouldComponentUpdate(nextProps) {
    return nextProps.update ||
      (this.props.staticKey !== nextProps.staticKey);
  },

  render() {
    if (this.props.fullscreen)
      this.addStyles('fullscreen');

    return (
      <div {...this.componentProps()} {...props}>
        {this.props.children}
      </div>
    );
  }
});
Fix for static container, instead of using componentProps(), now using this.props for props reference.
Fix for static container, instead of using componentProps(), now using this.props for props reference.
