From 0468c19665769d143b2783919a94fc536c1c7a42 Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Mon, 24 Jun 2019 11:31:16 -0400 Subject: [PATCH 1/2] stub for join-flow component within modal --- src/components/join-flow/join-flow.jsx | 31 ++++++++++++++++++++++++++ src/components/modal/join/modal.jsx | 7 +++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 src/components/join-flow/join-flow.jsx diff --git a/src/components/join-flow/join-flow.jsx b/src/components/join-flow/join-flow.jsx new file mode 100644 index 000000000..31a3d1136 --- /dev/null +++ b/src/components/join-flow/join-flow.jsx @@ -0,0 +1,31 @@ +const connect = require('react-redux').connect; +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 ( + + ); + } +} + +JoinFlow.propTypes = { + intl: intlShape, + onCompleteRegistration: PropTypes.func +}; + +module.exports = injectIntl(JoinFlow); + +/* +eslint-enable +*/ diff --git a/src/components/modal/join/modal.jsx b/src/components/modal/join/modal.jsx index 648d7341c..c8898b4e2 100644 --- a/src/components/modal/join/modal.jsx +++ b/src/components/modal/join/modal.jsx @@ -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} - /> + > + + ); JoinModal.propTypes = { From 0b69eef56ddda6ea6f441cb811b87dd98c773dbd Mon Sep 17 00:00:00 2001 From: Ben Wheeler Date: Mon, 24 Jun 2019 11:36:18 -0400 Subject: [PATCH 2/2] removed unnecessary redux connect --- src/components/join-flow/join-flow.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/join-flow/join-flow.jsx b/src/components/join-flow/join-flow.jsx index 31a3d1136..bc31240d3 100644 --- a/src/components/join-flow/join-flow.jsx +++ b/src/components/join-flow/join-flow.jsx @@ -1,4 +1,3 @@ -const connect = require('react-redux').connect; const PropTypes = require('prop-types'); const React = require('react');