Replace home page image

This commit is contained in:
2017-02-12 20:35:58 +00:00
parent 7ddacfed94
commit eacd41076c
8 changed files with 23 additions and 16 deletions

View File

@@ -28,11 +28,16 @@ class RsvpButton extends React.Component {
}
handleRsvpBlur = () => {
this.setState({ inputInvalidMsg: null });
if (this.props.focusCallback) {
this.props.focusCallback(false);
}
}
handleRsvpChange = () => {
this.setState({ inputInvalidMsg: null });
}
handleFormSubmit = (event) => {
event.preventDefault();
fetch(`rsvp/${this.rsvpInput.value}`)
@@ -90,6 +95,7 @@ class RsvpButton extends React.Component {
ref={(input) => { this.rsvpInput = input; }}
onFocus={this.handleRsvpFocus}
onBlur={this.handleRsvpBlur}
onChange={this.handleRsvpChange}
id="code"
type="text"
name="code"