Change messaging on welcome step of registration for under 13

This commit is contained in:
Georgi Angelov 2024-08-16 17:39:29 +03:00
parent 0fb18c4650
commit 7c67d95085
3 changed files with 9 additions and 2 deletions

View file

@ -307,6 +307,7 @@ class JoinFlow extends React.Component {
email={this.state.formData.email}
sendAnalytics={this.sendAnalytics}
username={this.state.formData.username}
under13={this.isUnder13()}
onNextStep={this.props.onCompleteRegistration}
/>
</Progression>

View file

@ -75,7 +75,11 @@ class WelcomeStep extends React.Component {
</div>
<div className="join-flow-instructions">
<FormattedMessage
id="registration.welcomeStepInstructions"
id={
this.props.under13 ?
"registration.welcomeStepInstructionsUnder13" :
"registration.welcomeStepInstructions"
}
values={{
email: this.props.email
}}
@ -95,7 +99,8 @@ WelcomeStep.propTypes = {
intl: intlShape,
onNextStep: PropTypes.func,
sendAnalytics: PropTypes.func,
username: PropTypes.string
username: PropTypes.string,
under13: PropTypes.bool
};
module.exports = injectIntl(WelcomeStep);

View file

@ -263,6 +263,7 @@
"registration.welcomeStepDescription": "You have successfully set up a Scratch account! You are now a member of the class:",
"registration.welcomeStepDescriptionNonEducator": "Youre now logged in! You can start exploring and creating projects.",
"registration.welcomeStepInstructions": "Want to share and comment? Click the link on the email we sent to {email}.",
"registration.welcomeStepInstructionsUnder13": "Your parent/guardian needs to confirm your account within 10 days or you will lose access to Scratch. They need to click the link on the email we sent to {email}.",
"registration.welcomeStepPrompt": "To get started, click on the button below.",
"registration.welcomeStepTitle": "Hurray! Welcome to Scratch!",
"registration.welcomeStepTitleNonEducator": "Welcome to Scratch, {username}!",