scratch-www/src/components/modal/join/modal.jsx
Ben Wheeler 691faabe28 pass createProjectOnComplete prop through join flow
…so welcome step can display correct completion text
2019-09-24 18:41:24 -04:00

37 lines
928 B
JavaScript

const PropTypes = require('prop-types');
const React = require('react');
const Modal = require('../base/modal.jsx');
const JoinFlow = require('../../join-flow/join-flow.jsx');
require('./modal.scss');
const JoinModal = ({
createProjectOnComplete,
onCompleteRegistration,
onRequestClose,
...modalProps
}) => (
<Modal
isOpen
showCloseButton
useStandardSizes
className="mod-join"
shouldCloseOnOverlayClick={false}
onRequestClose={onRequestClose}
{...modalProps}
>
<JoinFlow
createProjectOnComplete={createProjectOnComplete}
onCompleteRegistration={onCompleteRegistration}
/>
</Modal>
);
JoinModal.propTypes = {
createProjectOnComplete: PropTypes.bool,
onCompleteRegistration: PropTypes.func,
onRequestClose: PropTypes.func,
showCloseButton: PropTypes.bool
};
module.exports = JoinModal;