diff --git a/README.md b/README.md index aa32e3f..a2e1a33 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ Open [http://localhost:3000](http://localhost:3000) to view it in the browser. The page will reload if you make edits.
You will also see any lint errors in the console. +### `npm run build` + +Build this project for production. ## Usage only the component diff --git a/api/contact/index.php b/api/contact/index.php index e179ee2..4d2b49c 100644 --- a/api/contact/index.php +++ b/api/contact/index.php @@ -9,7 +9,7 @@ // set response code - 200 OK http_response_code(200); $subject = $_POST['fname']; - $to = "me@malith.pro"; + $to = "hey@malith.dev"; //TODO: Please change this before using $from = $_POST['email']; //data $msg = $_POST['number'] . $_POST['message']; diff --git a/src/components/Form/index.js b/src/components/Form/index.js index 3ad38b5..44a8384 100644 --- a/src/components/Form/index.js +++ b/src/components/Form/index.js @@ -45,26 +45,26 @@ class Form extends React.Component {
{fields && - fields.map(fields => { + fields.map(field => { return ( - - {fields.type !== "textarea" ? ( + + {field.type !== "textarea" ? ( - + this.setState({ fname: e.target.value })} /> ) : ( - +