Merge pull request #3074 from benjiwheeler/add-join-flow-component

stub for join-flow component within modal
This commit is contained in:
Benjamin Wheeler 2019-06-24 13:23:31 -04:00 committed by GitHub
commit c09fd1d5bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 1 deletions

View 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
*/

View file

@ -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 = {