Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

Container.js 718B

1234567891011121314151617181920212223242526272829303132
  1. /* @flow */
  2. import AbstractContainer from '../AbstractContainer';
  3. /**
  4. * Represents a container of React/Web {@link Component} children with a style.
  5. *
  6. * @extends AbstractContainer
  7. */
  8. export default class Container extends AbstractContainer {
  9. /**
  10. * {@code Container} component's property types.
  11. *
  12. * @static
  13. */
  14. static propTypes = AbstractContainer.propTypes;
  15. /**
  16. * Implements React's {@link Component#render()}.
  17. *
  18. * @inheritdoc
  19. * @returns {ReactElement}
  20. */
  21. render() {
  22. const { visible } = this.props;
  23. return (
  24. typeof visible === 'undefined' || visible
  25. ? super._render('div')
  26. : null);
  27. }
  28. }