Skip to content

Commit

Permalink
fixed form autofill
Browse files Browse the repository at this point in the history
  • Loading branch information
ding-ma committed Aug 29, 2020
1 parent b7e7a1b commit 0fdd348
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/Components/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,25 +72,25 @@ class About extends Component<IProps, IState> {
}
const renderForm = () => {
return (
<form noValidate={true} autoComplete="off" id={"contact"}>
<form noValidate={true} id={"contact"}>
<div className="form-group">
<h2><FormattedMessage id={"About.button.contact"}/></h2>
<IntlLabel labelId={"Field4"} labelName={"Field4"} placeholderId={"Form.name"}
<IntlLabel labelId={"Name"} labelName={"Name"} placeholderId={"Form.name"}
onchange={this.handleName} isBox={false}/>
</div>

<div className="form-group">
<IntlLabel labelId={"Field2"} labelName={"Field2"} placeholderId={"Form.email"}
onchange={this.handleEmail} isBox={false}/>
<IntlLabel labelId={"Email"} labelName={"Email"} placeholderId={"Form.email"}
onchange={this.handleEmail} isBox={false}/>
</div>

<div className="form-group">
<IntlLabel labelId={"Field5"} labelName={"Field5"} placeholderId={"Form.subject"}
onchange={this.handleSubject} isBox={false}/>
<IntlLabel labelId={"Subject"} labelName={"Subject"} placeholderId={"Form.subject"}
onchange={this.handleSubject} isBox={false}/>
</div>

<div className="form-group">
<IntlLabel labelId={"Field1"} labelName={"Field1"} placeholderId={"Form.message"}
<IntlLabel labelId={"Message"} labelName={"Message"} placeholderId={"Form.message"}
onchange={this.handleMsg} isBox={true}/>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/Translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"Form.email": "Courriel",
"Form.subject": "Suject",
"Form.message": "Que veux tu parler de ? :)",
"Email": "mailto:[email protected]?subject=Contacter%20Ding&body=Salut%20Ding%2C%0D%0A%0D%0A%5BInserez%20votre%20message%5D",
"Email": "mailto:[email protected]?subject=Contacter%20Ding&body=Salut%20Ding%2C%0D%0A%0D%0A%5BInsérez%20votre%20message%5D",
"Github": "https://github.com/ding-ma",
"LinkedIn": "https://www.linkedin.com/in/ding--ma/",
"Internship": "Stages",
Expand Down

0 comments on commit 0fdd348

Please sign in to comment.