Compare commits

...

7 Commits

6 changed files with 20 additions and 21 deletions
+7 -6
View File
@@ -94,7 +94,7 @@ const Main = ({ brdcum }) => {
// Checking for errors
if (contact?.data?.status < 1 || contact?.data?.message_id == "")
return (errText.textContent =
"unable to send your message, please try able");
"unable to send your message, please try again");
else {
response.innerHTML = `<p> SEND MESSAGE </p>`;
@@ -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
+5 -5
View File
@@ -100,7 +100,7 @@ const Main = ({ footer }) => {
<Link to="/faq">FAQs</Link>
</li>
<li>
<Link to="/how_it_work">How it works</Link>
<a href="#how_it_work">How it works</a>
</li>
<li>
<Link to="/terms">Terms & conditions</Link>
@@ -237,7 +237,7 @@ const Main = ({ footer }) => {
<Link to="/faq">FAQs</Link>
</li>
<li>
<Link to="/how_it_work">How it works</Link>
<a href="/how_it_work">How it works</a>
</li>
<li>
<Link to="/terms">Terms & conditions</Link>
@@ -367,7 +367,7 @@ const Main = ({ footer }) => {
<Link to="#">Support</Link>
</li>
<li>
<Link to="/how_it_work">How it works</Link>
<a href="/how_it_work">How it works</a>
</li>
<li>
<Link to="/terms">Terms & conditions</Link>
@@ -492,7 +492,7 @@ const Main = ({ footer }) => {
<Link to="#">Support</Link>
</li>
<li>
<Link to="/how_it_work">How it works</Link>
<a href="/how_it_work">How it works</a>
</li>
<li>
<Link to="/terms">Terms & conditions</Link>
@@ -624,7 +624,7 @@ const Main = ({ footer }) => {
<Link to="#">Support</Link>
</li>
<li>
<Link to="/how_it_work">How it works</Link>
<a href="/how_it_work">How it works</a>
</li>
<li>
<Link to="/terms">Terms & conditions</Link>
+1 -1
View File
@@ -134,7 +134,7 @@ const Main = ({navbar}) => {
<Link smooth to="/#features" className="nav-link">Features</Link>
</li>
<li className="nav-item">
<Link smooth to="#how_it_work" className="nav-link">How it works</Link>
<Link smooth to="/#how_it_work" className="nav-link">How it works</Link>
</li>
<li className="nav-item" >
<Link to="/blog" className="nav-link">Blog</Link>
+5 -5
View File
@@ -31,7 +31,7 @@ const Main = ({brdcum}) => {
<Bredcrumb
no={1}
title="Have questions? look here"
paragraph="Lorem Ipsum is simply dummy text of the printing and typesetting"
paragraph="Learn more about myFit through answers to frequently asked questions."
tag="Faq"
bgimg={BGImg}/>}
@@ -39,7 +39,7 @@ const Main = ({brdcum}) => {
<Bredcrumb
no={2}
title="Have questions? look here"
paragraph="Lorem Ipsum is simply dummy text of the printing and typesetting"
paragraph="Learn more about myFit through answers to frequently asked questions."
tag="Faq"
bgimg={BGImg1}/>}
@@ -47,7 +47,7 @@ const Main = ({brdcum}) => {
<Bredcrumb
no={5}
title="Have questions? look here"
paragraph="Lorem Ipsum is simply dummy text of the printing and typesetting"
paragraph="Learn more about myFit through answers to frequently asked questions."
tag="Faq"
bgimg={BGImg}/>}
@@ -55,14 +55,14 @@ const Main = ({brdcum}) => {
<Bredcrumb
no={3}
title="Have questions? look here"
paragraph="Lorem Ipsum is simply dummy text of the printing and typesetting"
paragraph="Learn more about myFit through answers to frequently asked questions."
tag="Faq" />}
{brdcum.b4 &&
<Bredcrumb
no={4}
title="Have questions? look here"
paragraph="Lorem Ipsum is simply dummy text of the printing and typesetting"
paragraph="Learn more about myFit through answers to frequently asked questions."
tag="Faq"
bgimg={BGImg2}/>}
-2
View File
@@ -3,7 +3,6 @@ import { Route, Routes, useLocation } from "react-router-dom";
import Navbar from "../component/Navbar/Main";
import Footer from "../component/Footer/Main";
import Home from "../component/Home/Main";
import Work from "../component/HomeMain/Work/Main"
import AboutUs from "../component/AboutUs/Main";
import Review from "../component/Pages/Review/Main";
import Contact from "../component/Contact/Main";
@@ -89,7 +88,6 @@ const Routing = () => {
<Route path="/blogdetails/:id" element={<BlogSingle brdcum={brdcum} />} />
<Route path="/terms" element={<Terms brdcum={brdcum} />} />
<Route path="/privacy" element={<Privacy brdcum={brdcum} />} />
<Route path="/how_it_work" element={<Work brdcum={brdcum} />} />
</Routes>
{footerpage && <Footer footer={footer} />}
+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() {