mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Merge pull request #3074 from benjiwheeler/add-join-flow-component
stub for join-flow component within modal
This commit is contained in:
commit
c09fd1d5bc
2 changed files with 36 additions and 1 deletions
30
src/components/join-flow/join-flow.jsx
Normal file
30
src/components/join-flow/join-flow.jsx
Normal file
|
@ -0,0 +1,30 @@
|
|||
const PropTypes = require('prop-types');
|
||||
const React = require('react');
|
||||
|
||||
const injectIntl = require('../../lib/intl.jsx').injectIntl;
|
||||
const intlShape = require('../../lib/intl.jsx').intlShape;
|
||||
|
||||
/*
|
||||
eslint-disable react/prefer-stateless-function, react/no-unused-prop-types, no-useless-constructor
|
||||
*/
|
||||
class JoinFlow extends React.Component {
|
||||
constructor (props) {
|
||||
super(props);
|
||||
}
|
||||
render () {
|
||||
return (
|
||||
<React.Fragment />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
JoinFlow.propTypes = {
|
||||
intl: intlShape,
|
||||
onCompleteRegistration: PropTypes.func
|
||||
};
|
||||
|
||||
module.exports = injectIntl(JoinFlow);
|
||||
|
||||
/*
|
||||
eslint-enable
|
||||
*/
|
|
@ -1,6 +1,7 @@
|
|||
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');
|
||||
|
||||
|
@ -16,7 +17,11 @@ const JoinModal = ({
|
|||
isOpen={isOpen}
|
||||
onRequestClose={onRequestClose}
|
||||
{...modalProps}
|
||||
/>
|
||||
>
|
||||
<JoinFlow
|
||||
onCompleteRegistration={onCompleteRegistration}
|
||||
/>
|
||||
</Modal>
|
||||
);
|
||||
|
||||
JoinModal.propTypes = {
|
||||
|
|
Loading…
Reference in a new issue