mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-01-08 05:22:16 -05:00
29 lines
616 B
React
29 lines
616 B
React
|
const PropTypes = require('prop-types');
|
||
|
const React = require('react');
|
||
|
const Modal = require('../base/modal.jsx');
|
||
|
|
||
|
require('./modal.scss');
|
||
|
|
||
|
const JoinModal = ({
|
||
|
isOpen,
|
||
|
onCompleteRegistration, // eslint-disable-line no-unused-vars
|
||
|
onRequestClose,
|
||
|
...modalProps
|
||
|
}) => (
|
||
|
<Modal
|
||
|
useStandardSizes
|
||
|
className="mod-join"
|
||
|
isOpen={isOpen}
|
||
|
onRequestClose={onRequestClose}
|
||
|
{...modalProps}
|
||
|
/>
|
||
|
);
|
||
|
|
||
|
JoinModal.propTypes = {
|
||
|
isOpen: PropTypes.bool,
|
||
|
onCompleteRegistration: PropTypes.func,
|
||
|
onRequestClose: PropTypes.func
|
||
|
};
|
||
|
|
||
|
module.exports = JoinModal;
|