You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

DialogContainer.js 909B

123456789101112131415161718192021222324252627282930313233343536
  1. import { ModalTransition } from '@atlaskit/modal-dialog';
  2. import React from 'react';
  3. import { connect } from '../../../redux';
  4. import AbstractDialogContainer, {
  5. abstractMapStateToProps
  6. } from '../AbstractDialogContainer';
  7. /**
  8. * Implements a DialogContainer responsible for showing all dialogs. Necessary
  9. * for supporting @atlaskit's modal animations.
  10. *
  11. * @extends AbstractDialogContainer
  12. */
  13. class DialogContainer extends AbstractDialogContainer {
  14. /**
  15. * Implements React's {@link Component#render()}.
  16. *
  17. * @inheritdoc
  18. * @returns {ReactElement}
  19. */
  20. render() {
  21. if (this.props._rawDialog) {
  22. return this._renderDialogContent();
  23. }
  24. return (
  25. <ModalTransition>
  26. { this._renderDialogContent() }
  27. </ModalTransition>
  28. );
  29. }
  30. }
  31. export default connect(abstractMapStateToProps)(DialogContainer);