18 lines
574 B
JavaScript
18 lines
574 B
JavaScript
|
import React from 'react';
|
||
|
import ReactModal from 'react-modal';
|
||
|
|
||
|
export const ModalPage = React.createClass({
|
||
|
render: function() {
|
||
|
return (
|
||
|
<ReactModal onCloseRequested={this.props.onAborted || this.props.onConfirmed} {...this.props}
|
||
|
className={(this.props.className || '') + ' modal-page'}
|
||
|
overlayClassName={(this.props.overlayClassName || '') + ' modal-page-overlay'}>
|
||
|
<div className="modal-page__content">
|
||
|
{this.props.children}
|
||
|
</div>
|
||
|
</ReactModal>
|
||
|
);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export default ModalPage;
|