This repository was archived by the owner on Jun 10, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
shared/components/form/formButton Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class SignUp extends Component {
6363 validatePasswordConfirm = value =>
6464 value === '' || value === this . state . password ;
6565
66- handleOnSubmit = ( e ) => {
66+ handleOnClick = ( e ) => {
6767 e . preventDefault = true ;
6868
6969 if ( this . isFormValid ( ) ) {
@@ -127,7 +127,7 @@ class SignUp extends Component {
127127 />
128128 { this . state . error && < span > There was an error joining Operation Code: { this . state . error } </ span > }
129129 { this . state . success && < Redirect to = "/thanks" /> }
130- < FormButton className = { styles . joinButton } text = "Join" onSubmit = { this . handleOnSubmit } theme = "red" />
130+ < FormButton className = { styles . joinButton } text = "Join" onClick = { this . handleOnClick } theme = "red" />
131131 </ Form >
132132 </ Section >
133133 ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class FormButton extends Component {
1111 [ `${ this . props . className } ` ] : this . props . className
1212 } ) ;
1313 return (
14- < button type = "submit " className = { classes } onSubmit = { this . props . onClick } > { this . props . text } </ button >
14+ < button type = "button " className = { classes } onClick = { this . props . onClick } > { this . props . text } </ button >
1515 ) ;
1616 }
1717}
You can’t perform that action at this time.
0 commit comments