lbry-desktop/ui/js/component/modal-page.js

22 lines
480 B
JavaScript
Raw Normal View History

2017-04-01 08:51:15 +02:00
import React from 'react';
import ReactModal from 'react-modal';
2017-05-17 10:10:25 +02:00
export class ModalPage extends React.Component {
2017-06-06 06:21:55 +02:00
render() {
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>
);
}
2017-05-17 10:10:25 +02:00
}
2017-05-19 18:17:19 +02:00
2017-06-06 06:21:55 +02:00
export default ModalPage;