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 814B

123456789101112131415161718192021222324252627282930313233
  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. return (
  22. <ModalTransition>
  23. { this._renderDialogContent() }
  24. </ModalTransition>
  25. );
  26. }
  27. }
  28. export default connect(abstractMapStateToProps)(DialogContainer);