Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7098e8a2fe | |||
| cf6a83423e | |||
| 63ea81ec40 | |||
| 79cd247c16 | |||
| 84eacb05d7 | |||
| fa2a9fd116 |
@@ -110,18 +110,19 @@ const Main = ({ brdcum }) => {
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
errText.textContent = "unable to send your message, please try again"
|
||||
console.log(error);
|
||||
});
|
||||
};
|
||||
|
||||
//CALLS THE API AFTER COMPONENT LOADS
|
||||
useEffect(() => {
|
||||
allCountry().then((data) => setCountries(Object.values(data.data)));
|
||||
allCountry().then((data) => setCountries(Object.keys(data.data))).catch((err)=>console.log(err.message));
|
||||
}, []);
|
||||
|
||||
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
|
||||
@@ -250,10 +251,10 @@ const Main = ({ brdcum }) => {
|
||||
|
||||
<div className="form-group">
|
||||
<textarea
|
||||
name="msg"
|
||||
name="message"
|
||||
className="form-control"
|
||||
placeholder="Your message"
|
||||
value={values.msg}
|
||||
value={values.message}
|
||||
errorMessage='words have exceeded 350 characters!'
|
||||
onChange={onChange}
|
||||
maxLength={300}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Link } from "react-router-dom";
|
||||
import { HashLink } from 'react-router-hash-link';
|
||||
import React from "react";
|
||||
import line from "../../assets/images/anim_line.png";
|
||||
import blueapp from "../../assets/images/appstore_blue.png";
|
||||
@@ -100,7 +101,7 @@ const Main = ({ footer }) => {
|
||||
<Link to="/faq">FAQs</Link>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#how_it_work">How it works</a>
|
||||
<HashLink to="/#how_it_work">How it works</HashLink>
|
||||
</li>
|
||||
<li>
|
||||
<Link to="/terms">Terms & conditions</Link>
|
||||
@@ -237,7 +238,7 @@ const Main = ({ footer }) => {
|
||||
<Link to="/faq">FAQs</Link>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/how_it_work">How it works</a>
|
||||
<HashLink to="/#how_it_work">How it works</HashLink>
|
||||
</li>
|
||||
<li>
|
||||
<Link to="/terms">Terms & conditions</Link>
|
||||
@@ -367,7 +368,7 @@ const Main = ({ footer }) => {
|
||||
<Link to="#">Support</Link>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/how_it_work">How it works</a>
|
||||
<HashLink to="/#how_it_work">How it works</HashLink>
|
||||
</li>
|
||||
<li>
|
||||
<Link to="/terms">Terms & conditions</Link>
|
||||
@@ -492,7 +493,7 @@ const Main = ({ footer }) => {
|
||||
<Link to="#">Support</Link>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/how_it_work">How it works</a>
|
||||
<HashLink to="/#how_it_work">How it works</HashLink>
|
||||
</li>
|
||||
<li>
|
||||
<Link to="/terms">Terms & conditions</Link>
|
||||
@@ -624,7 +625,7 @@ const Main = ({ footer }) => {
|
||||
<Link to="#">Support</Link>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/how_it_work">How it works</a>
|
||||
<HashLink to="/#how_it_work">How it works</HashLink>
|
||||
</li>
|
||||
<li>
|
||||
<Link to="/terms">Terms & conditions</Link>
|
||||
|
||||
Vendored
+2
-2
@@ -16,8 +16,8 @@ class SiteService {
|
||||
}
|
||||
|
||||
// Contact Data{POST}
|
||||
contactData() {
|
||||
return this.postAuxEnd("/contact", null)
|
||||
contactData(value) {
|
||||
return this.postAuxEnd("/contact", value)
|
||||
}
|
||||
|
||||
faqData() {
|
||||
|
||||
Reference in New Issue
Block a user