Fixed the Contact Form.
This commit is contained in:
parent
46e6ff27c9
commit
c6a48891ad
1 changed files with 10 additions and 6 deletions
|
@ -59,8 +59,8 @@ class homePage extends Component {
|
||||||
type="text"
|
type="text"
|
||||||
className="form-control"
|
className="form-control"
|
||||||
placeholder="First Name"
|
placeholder="First Name"
|
||||||
value={this.state.name}
|
value={this.state.firstname}
|
||||||
onChange={this.onNameChange.bind(this)}
|
onChange={this.onFirstNameChange.bind(this)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-6">
|
<div className="col-6">
|
||||||
|
@ -68,8 +68,8 @@ class homePage extends Component {
|
||||||
type="text"
|
type="text"
|
||||||
className="form-control"
|
className="form-control"
|
||||||
placeholder="Last Name"
|
placeholder="Last Name"
|
||||||
value={this.state.name}
|
value={this.state.lastname}
|
||||||
onChange={this.onNameChange.bind(this)}
|
onChange={this.onLastNameChange.bind(this)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -105,8 +105,12 @@ class homePage extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
onNameChange(event) {
|
onFirstNameChange(event) {
|
||||||
this.setState({ name: event.target.value });
|
this.setState({ firstname: event.target.value });
|
||||||
|
}
|
||||||
|
|
||||||
|
onLastNameChange(event) {
|
||||||
|
this.setState({ lastname: event.target.value });
|
||||||
}
|
}
|
||||||
|
|
||||||
onEmailChange(event) {
|
onEmailChange(event) {
|
||||||
|
|
Loading…
Reference in a new issue