scratch-www/src/components/modal/join/modal.jsx

32 lines
727 B
React
Raw Normal View History

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 = ({
onCompleteRegistration, // eslint-disable-line no-unused-vars
onRequestClose,
...modalProps
}) => (
<Modal
isOpen
useStandardSizes
className="mod-join"
onRequestClose={onRequestClose}
{...modalProps}
>
<JoinFlow
onCompleteRegistration={onCompleteRegistration}
/>
</Modal>
);
JoinModal.propTypes = {
onCompleteRegistration: PropTypes.func,
onRequestClose: PropTypes.func
};
module.exports = JoinModal;