2019-06-18 16:50:27 -04:00
|
|
|
const PropTypes = require('prop-types');
|
|
|
|
const React = require('react');
|
|
|
|
const Modal = require('../base/modal.jsx');
|
2019-06-24 11:31:16 -04:00
|
|
|
const JoinFlow = require('../../join-flow/join-flow.jsx');
|
2019-06-18 16:50:27 -04:00
|
|
|
|
|
|
|
require('./modal.scss');
|
|
|
|
|
|
|
|
const JoinModal = ({
|
2019-09-23 11:25:10 -04:00
|
|
|
createProjectOnComplete,
|
|
|
|
onCompleteRegistration,
|
2019-06-18 16:50:27 -04:00
|
|
|
onRequestClose,
|
|
|
|
...modalProps
|
|
|
|
}) => (
|
|
|
|
<Modal
|
2019-08-26 14:09:05 -04:00
|
|
|
isOpen
|
2019-09-20 14:40:49 -04:00
|
|
|
showCloseButton
|
2019-06-18 16:50:27 -04:00
|
|
|
useStandardSizes
|
|
|
|
className="mod-join"
|
2019-09-23 10:36:58 -04:00
|
|
|
shouldCloseOnOverlayClick={false}
|
2019-06-18 16:50:27 -04:00
|
|
|
onRequestClose={onRequestClose}
|
|
|
|
{...modalProps}
|
2019-06-24 11:31:16 -04:00
|
|
|
>
|
|
|
|
<JoinFlow
|
2019-09-23 11:25:10 -04:00
|
|
|
createProjectOnComplete={createProjectOnComplete}
|
2019-06-24 11:31:16 -04:00
|
|
|
onCompleteRegistration={onCompleteRegistration}
|
|
|
|
/>
|
|
|
|
</Modal>
|
2019-06-18 16:50:27 -04:00
|
|
|
);
|
|
|
|
|
|
|
|
JoinModal.propTypes = {
|
2019-09-23 11:25:10 -04:00
|
|
|
createProjectOnComplete: PropTypes.bool,
|
2019-06-18 16:50:27 -04:00
|
|
|
onCompleteRegistration: PropTypes.func,
|
2019-09-20 14:40:49 -04:00
|
|
|
onRequestClose: PropTypes.func,
|
|
|
|
showCloseButton: PropTypes.bool
|
2019-06-18 16:50:27 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = JoinModal;
|