lbry-desktop/ui/js/component/modal-page.js
Jeremy Kauffman b38998dc18 more fixes
2017-04-17 09:46:51 -04:00

18 lines
No EOL
528 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="modal-overlay">
<div className="modal-page__content">
{this.props.children}
</div>
</ReactModal>
);
}
});
export default ModalPage;