mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 23:27:54 -05:00
wired showCloseButton through new join flow
This commit is contained in:
parent
691faabe28
commit
7e86319a36
1 changed files with 5 additions and 2 deletions
|
@ -11,13 +11,15 @@ const Registration = ({
|
|||
createProjectOnComplete,
|
||||
handleCloseRegistration,
|
||||
handleCompleteRegistration,
|
||||
isOpen
|
||||
isOpen,
|
||||
showCloseButton
|
||||
}) => (
|
||||
<div>
|
||||
<JoinModal
|
||||
createProjectOnComplete={createProjectOnComplete}
|
||||
isOpen={isOpen}
|
||||
key="join-modal"
|
||||
showCloseButton={showCloseButton}
|
||||
onCompleteRegistration={handleCompleteRegistration}
|
||||
onRequestClose={handleCloseRegistration}
|
||||
/>
|
||||
|
@ -28,7 +30,8 @@ Registration.propTypes = {
|
|||
createProjectOnComplete: PropTypes.bool,
|
||||
handleCloseRegistration: PropTypes.func,
|
||||
handleCompleteRegistration: PropTypes.func,
|
||||
isOpen: PropTypes.bool
|
||||
isOpen: PropTypes.bool,
|
||||
showCloseButton: PropTypes.bool
|
||||
};
|
||||
|
||||
const mapDispatchToProps = (dispatch, ownProps) => ({
|
||||
|
|
Loading…
Reference in a new issue