mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -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,
|
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) => ({
|
||||||
|
|
Loading…
Reference in a new issue