Skip to content

Commit

Permalink
changing names
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Nov 30, 2020
1 parent d4fc371 commit cb34129
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/ContactForm/ContactForm.js
Expand Up @@ -15,7 +15,8 @@ const ContactForm = ({ action}) => {
const { value:surname, bind:bindLastName, reset:resetLastName } = useInput('');
const { value:email, bind:bindEmail, reset:resetEmail } = useInput('');
const { value:subject, bind:bindSubject, reset:resetSubject } = useInput('');
const { value:gender, bind:bindGender, reset:resetGender } = useInput('');
const { value:genderMale, bind:bindGenderMale, reset:resetGenderMale } = useInput('');
const { value:genderFemale, bind:bindGenderFemale, reset:resetGenderFemale } = useInput('');
const { value:enquiry, bind:bindEnquiry, reset:resetEnquiry } = useInput('');
const { value:message, bind:bindMessage, reset:resetMessage } = useInput('');

Expand All @@ -29,7 +30,8 @@ const ContactForm = ({ action}) => {
resetEmail();
resetSubject();
resetEnquiry();
resetGender();
resetGenderMale();
resetGenderFemale();
resetMessage();
const form = e.target;
fetch("/?no-cache=1", {
Expand Down Expand Up @@ -89,19 +91,19 @@ const ContactForm = ({ action}) => {
<label className="radio menu-names">
<input
type="radio"
name="gender"
name="genderMale"
value="male"
{...bindGender}
{...bindGenderMale}
defaultChecked
/>
<span><FormattedMessage id="contact.gender.male"/></span>
</label>
<label className="radio">
<input
type="radio"
name="gender"
name="genderFemale"
value="female"
{...bindGender}
{...bindGenderFemale}
/>
<span><FormattedMessage id="contact.gender.female"/></span>
</label>
Expand Down

0 comments on commit cb34129

Please sign in to comment.