diff --git a/src/components/join-flow/join-flow.jsx b/src/components/join-flow/join-flow.jsx index 6849531e6..2d40452e2 100644 --- a/src/components/join-flow/join-flow.jsx +++ b/src/components/join-flow/join-flow.jsx @@ -155,6 +155,7 @@ class JoinFlow extends React.Component { onRegistrationError={this.handleRegistrationError} /> - } + ) : ( + + )} title={`${this.props.intl.formatMessage( {id: 'registration.welcomeStepTitleNonEducator'}, {username: this.props.username} @@ -79,6 +81,7 @@ class WelcomeStep extends React.Component { } WelcomeStep.propTypes = { + createProjectOnComplete: PropTypes.bool, email: PropTypes.string, intl: intlShape, onNextStep: PropTypes.func, diff --git a/src/components/modal/join/modal.jsx b/src/components/modal/join/modal.jsx index bd17ac6ab..7edc22a3c 100644 --- a/src/components/modal/join/modal.jsx +++ b/src/components/modal/join/modal.jsx @@ -6,7 +6,8 @@ const JoinFlow = require('../../join-flow/join-flow.jsx'); require('./modal.scss'); const JoinModal = ({ - onCompleteRegistration, // eslint-disable-line no-unused-vars + createProjectOnComplete, + onCompleteRegistration, onRequestClose, ...modalProps }) => ( @@ -20,12 +21,14 @@ const JoinModal = ({ {...modalProps} > ); JoinModal.propTypes = { + createProjectOnComplete: PropTypes.bool, onCompleteRegistration: PropTypes.func, onRequestClose: PropTypes.func, showCloseButton: PropTypes.bool diff --git a/src/components/registration/scratch3-registration.jsx b/src/components/registration/scratch3-registration.jsx index 220c01433..f88031b8e 100644 --- a/src/components/registration/scratch3-registration.jsx +++ b/src/components/registration/scratch3-registration.jsx @@ -8,14 +8,18 @@ const JoinModal = require('../modal/join/modal.jsx'); require('./registration.scss'); const Registration = ({ + createProjectOnComplete, handleCloseRegistration, handleCompleteRegistration, - isOpen + isOpen, + showCloseButton }) => (
@@ -23,11 +27,11 @@ const Registration = ({ ); Registration.propTypes = { - // used in mapDispatchToProps; eslint doesn't understand that this prop is used - createProjectOnComplete: PropTypes.bool, // eslint-disable-line react/no-unused-prop-types + createProjectOnComplete: PropTypes.bool, handleCloseRegistration: PropTypes.func, handleCompleteRegistration: PropTypes.func, - isOpen: PropTypes.bool + isOpen: PropTypes.bool, + showCloseButton: PropTypes.bool }; const mapDispatchToProps = (dispatch, ownProps) => ({ diff --git a/src/l10n.json b/src/l10n.json index a99f204d7..03720759f 100644 --- a/src/l10n.json +++ b/src/l10n.json @@ -13,6 +13,7 @@ "general.confirmEmail": "Confirm Email", "general.contactUs": "Contact Us", "general.contact": "Contact", + "general.done": "Done", "general.downloadPDF": "Download PDF", "general.emailUs": "Email Us", "general.conferences": "Conferences", diff --git a/src/views/join/join.jsx b/src/views/join/join.jsx index a62e7d449..4b2b9e6b5 100644 --- a/src/views/join/join.jsx +++ b/src/views/join/join.jsx @@ -1,6 +1,6 @@ const React = require('react'); const render = require('../../lib/render.jsx'); -const JoinModal = require('../../components/modal/join/modal.jsx'); +const Scratch3Registration = require('../../components/registration/scratch3-registration.jsx'); const ErrorBoundary = require('../../components/errorboundary/errorboundary.jsx'); // Require this even though we don't use it because, without it, webpack runs out of memory... const Page = require('../../components/page/www/page.jsx'); // eslint-disable-line no-unused-vars @@ -20,7 +20,8 @@ const Register = () => (
-