34 lines
814 B
JavaScript
34 lines
814 B
JavaScript
import { ModalTransition } from '@atlaskit/modal-dialog';
|
|
import React from 'react';
|
|
|
|
import { connect } from '../../../redux';
|
|
|
|
import AbstractDialogContainer, {
|
|
abstractMapStateToProps
|
|
} from '../AbstractDialogContainer';
|
|
|
|
/**
|
|
* Implements a DialogContainer responsible for showing all dialogs. Necessary
|
|
* for supporting @atlaskit's modal animations.
|
|
*
|
|
* @extends AbstractDialogContainer
|
|
*/
|
|
class DialogContainer extends AbstractDialogContainer {
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
return (
|
|
<ModalTransition>
|
|
{ this._renderDialogContent() }
|
|
</ModalTransition>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default connect(abstractMapStateToProps)(DialogContainer);
|
|
|