wired showCloseButton through new join flow

This commit is contained in:
Ben Wheeler 2019-09-24 18:43:29 -04:00
parent 691faabe28
commit 7e86319a36

View file

@ -11,13 +11,15 @@ const Registration = ({
createProjectOnComplete, createProjectOnComplete,
handleCloseRegistration, handleCloseRegistration,
handleCompleteRegistration, handleCompleteRegistration,
isOpen isOpen,
showCloseButton
}) => ( }) => (
<div> <div>
<JoinModal <JoinModal
createProjectOnComplete={createProjectOnComplete} createProjectOnComplete={createProjectOnComplete}
isOpen={isOpen} isOpen={isOpen}
key="join-modal" key="join-modal"
showCloseButton={showCloseButton}
onCompleteRegistration={handleCompleteRegistration} onCompleteRegistration={handleCompleteRegistration}
onRequestClose={handleCloseRegistration} onRequestClose={handleCloseRegistration}
/> />
@ -28,7 +30,8 @@ Registration.propTypes = {
createProjectOnComplete: PropTypes.bool, createProjectOnComplete: PropTypes.bool,
handleCloseRegistration: PropTypes.func, handleCloseRegistration: PropTypes.func,
handleCompleteRegistration: PropTypes.func, handleCompleteRegistration: PropTypes.func,
isOpen: PropTypes.bool isOpen: PropTypes.bool,
showCloseButton: PropTypes.bool
}; };
const mapDispatchToProps = (dispatch, ownProps) => ({ const mapDispatchToProps = (dispatch, ownProps) => ({