Contact page #57

Merged
tokslaw merged 1 commits from myfit_contact_page_name_issue into master 2023-01-24 02:05:46 +00:00
2 changed files with 8 additions and 7 deletions
+6 -5
View File
@@ -110,6 +110,7 @@ const Main = ({ brdcum }) => {
}
})
.catch((error) => {
errText.textContent = "unable to send your message, please try again"
console.log(error);
});
};
@@ -119,9 +120,9 @@ const Main = ({ brdcum }) => {
allCountry().then((data) => setCountries(Object.values(data.data)));
}, []);
useEffect(() => {
myData
}, [myData]);
// useEffect(() => {
// myData
// }, [myData]);
return (
<>
@@ -195,12 +196,12 @@ const Main = ({ brdcum }) => {
name="name"
type="text"
placeholder="Name"
errorMessage="Please enter your name"
errorMessage="Please enter your first and last name. (e.g: Mark John)"
required={true}
maxLenght={35}
value={values.name}
onChange={onChange}
pattern="^[A-Za-z]{1,35}$"
pattern="^$|^[a-zA-Z]+( [a-zA-Z]+)?$+( [a-zA-Z]+)?$"
/>
<FormInput
+2 -2
View File
@@ -16,8 +16,8 @@ class SiteService {
}
// Contact Data{POST}
contactData() {
return this.postAuxEnd("/contact", null)
contactData(value) {
return this.postAuxEnd("/contact", value)
}
faqData() {