diff --git a/src/assets/css/style.css b/src/assets/css/style.css
index bab1b11..6025ce5 100644
--- a/src/assets/css/style.css
+++ b/src/assets/css/style.css
@@ -3521,28 +3521,6 @@ header.fix_style.white_header {
margin-bottom: 20px;
}
-/* For the err msg */
-.contact_page_section .contact_inner .contact_form form .form-group span{
- font-size: 12px;
- color: tomato;
- padding: 3px;
- display: none;
-}
-
-.contact_page_section .contact_inner .contact_form form .form-group input:invalid ~ span{
- display: block;
-}
-
-/*
-input:invalid[focused="true"]{
- border: 1px solid red;
-}
-
-input:invalid[focused="true"] ~ span{
- display: block;
-}
-*/
-
.contact_page_section
.contact_inner
.contact_form
diff --git a/src/component/Contact/Main.js b/src/component/Contact/Main.js
index b9ec1d1..7b65228 100644
--- a/src/component/Contact/Main.js
+++ b/src/component/Contact/Main.js
@@ -7,71 +7,18 @@ import BGImg2 from "../../assets/images/bread_crumb_bg_two.png";
import SiteService from "../../vendors/service/siteService";
-// Form Inputs
-const FormInput = (props) => {
- let {
- name,
- type,
- placeholder,
- required,
- maxLenght,
- errorMessage,
- value,
- onChange,
- } = props;
-
- return (
-
-
- {errorMessage}
-
- );
-};
-
const Main = ({ brdcum }) => {
- // Form Validation
- const [values, setValues] = useState({
- name: "",
- email: "",
- phone: "",
- msg: "",
- }); //initial state values
- const [countries, setCountries] = useState([]); // initial state for country dropdown
-
- // Gave a generic name for multiple calls
- const API_CALL = new SiteService(); // instantiating the class
-
+ let [countries, setCountries] = useState([]) // initial state for country dropdown
+ let countryClass = new SiteService() // instantiating the class
+
const allCountry = () => {
- return API_CALL.countryData();
- };
-
- const contactForm = () => {
- return API_CALL.contactData();
- };
-
- // Submitting form
- const handleSubmit = (e) => {
- e.preventDefault();
- };
-
- const onChange = (e) => {
- setValues({ ...values, [e.target.name]: e.target.value });
- };
+ return countryClass.countryData();
+ }
//CALLS THE API AFTER COMPONENT LOADS
- useEffect(() => {
- allCountry().then((data) => setCountries(Object.values(data.data)));
- console.log(values);
- }, []);
+ useEffect(()=>{
+ allCountry().then((data)=> setCountries(Object.values(data.data)))
+ },[])
return (
<>
@@ -130,64 +77,44 @@ const Main = ({ brdcum }) => {
- Leave a message
+ Leave a message
Fill up form below, our team will get back soon
-
- {/* Contact Form */}
-
-
- {/* Contact Info */}

@@ -228,9 +153,7 @@ const Main = ({ brdcum }) => {
@@ -239,9 +162,7 @@ const Main = ({ brdcum }) => {
@@ -250,7 +171,7 @@ const Main = ({ brdcum }) => {
Visit Us
-
{process.env.REACT_APP_US_ADDRESS}
+
5687, Business Avenue, New York, USA 5687
diff --git a/src/vendors/service/siteService.js b/src/vendors/service/siteService.js
index 7cf0e67..dbea9f4 100644
--- a/src/vendors/service/siteService.js
+++ b/src/vendors/service/siteService.js
@@ -13,15 +13,11 @@ class SiteService {
return this.getAuxEnd("/country", null);
}
- contactData() {
- return this.postAuxEnd("/contact", null)
- }
-
faqData() {}
-
+
//---------------------------------------- -----
//---------------------------------------- -----
- // Unified call below
+ // Unified call below
//---------------------------------------- -----
//---------------------------------------- -----
getAuxEnd(uri, reqData) {