mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
Consolidate and remove onValidSubmit
This commit is contained in:
parent
4e568f7c06
commit
86662e13d6
1 changed files with 1 additions and 4 deletions
|
@ -499,9 +499,6 @@ module.exports = {
|
||||||
onChooseOrganization: function (name, values) {
|
onChooseOrganization: function (name, values) {
|
||||||
this.setState({otherDisabled: values.indexOf(this.organizationL10nStems.indexOf('orgChoiceOther')) === -1});
|
this.setState({otherDisabled: values.indexOf(this.organizationL10nStems.indexOf('orgChoiceOther')) === -1});
|
||||||
},
|
},
|
||||||
onValidSubmit: function (formData) {
|
|
||||||
return this.props.onNextStep(formData);
|
|
||||||
},
|
|
||||||
render: function () {
|
render: function () {
|
||||||
var formatMessage = this.props.intl.formatMessage;
|
var formatMessage = this.props.intl.formatMessage;
|
||||||
return (
|
return (
|
||||||
|
@ -515,7 +512,7 @@ module.exports = {
|
||||||
tipContent={formatMessage({id: 'registration.nameStepTooltip'})} />
|
tipContent={formatMessage({id: 'registration.nameStepTooltip'})} />
|
||||||
</p>
|
</p>
|
||||||
<Card>
|
<Card>
|
||||||
<Form onValidSubmit={this.onValidSubmit} onSubmit={this.onSubmit}>
|
<Form onValidSubmit={this.props.onNextStep}>
|
||||||
<Input label={formatMessage({id: 'teacherRegistration.organization'})}
|
<Input label={formatMessage({id: 'teacherRegistration.organization'})}
|
||||||
type="text"
|
type="text"
|
||||||
name="organization.name"
|
name="organization.name"
|
||||||
|
|
Loading…
Reference in a new issue