diff --git a/.env b/.env index 7cf7357..77a487b 100644 --- a/.env +++ b/.env @@ -8,6 +8,12 @@ REACT_APP_IOS_URL="https://play.google.com/store/apps/details?id=com.mermsemr.my REACT_APP_FACEBOOK="https://www.facebook.com/profile.php?id=100066498622246" REACT_APP_TWITTER="https://twitter.com/fluxtra" -REACT_APP_APPSITE="https://myfitapp.mermsemr.com" +REACT_APP_APPSITE=" https://myfitapp.mermsemr.com" +#REACT_APP_APPSITE="http://localhost:7012" + REACT_APP_AUX_ENDPOINT = "https://devapi.mermsemr.com/en/desktop/api/v2/myfit" +REACT_APP_FORM_TIMEOUT = 10000 +REACT_APP_MAX_MESSAGE_LENGHT =300 +REACT_APP_BLOGSITE="https://blog.mermsemr.com/" + diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 6025ce5..8e43a08 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -3521,6 +3521,108 @@ header.fix_style.white_header { margin-bottom: 20px; } +.contact_page_section .contact_inner .contact_form form .form-group textarea { + resize: none; +} + +/* Textarea scrollbar */ +.contact_page_section .contact_inner .contact_form form .form-group textarea::-webkit-scrollbar { + width: 12px; + cursor: pointer; +} + +.contact_page_section .contact_inner .contact_form form .form-group textarea::-webkit-scrollbar-track { + -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); + border-radius: 10px; + background-color: var(--light-bg); +} + +.contact_page_section .contact_inner .contact_form form .form-group textarea::-webkit-scrollbar-thumb { + border-radius: 10px; + -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); + background-color: var(--body-text-purple); +} + +.contact_page_section .contact_inner .contact_form form .form-group .contact_btn{ + display: flex !important; + align-items: center; + justify-content: center; +} + +.contact_page_section .contact_inner .contact_form form .form-group .contact_btn p{ + margin: 0 !important; +} + +.contact_page_section .contact_inner .contact_form form .form-group .contact_btn > span{ + width: 24px; + height: 24px; +} + +#contact_body{ + min-height: 48rem; + display: flex; + flex-direction: column; + align-content: center; + justify-content: center; + gap: 10px; +} + +.contact_body{ + display: flex; + flex-direction: column; + align-content: center; + justify-content: center; + gap: 10px; + font-size: 20px; + font-weight: 800; + text-align: center; +} + +/* Animations */ +.animate.pop { + animation-name: animate-pop; + animation-timing-function: cubic-bezier(0.26, 0.53, 0.74, 1.48); + animation-duration: 0.5s; +} + +@keyframes animate-pop { + 0% { + opacity: 0; + transform: scale(0.5, 0.5); + } + + 100% { + opacity: 1; + transform: scale(1, 1); + } +} + +/* For the err msg */ +#errText{ + text-align: center; + color: tomato; + font-weight: 600; +} + +.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:valid[focused="true"]{ + border: 1px solid var(--dark-purple); +} + +.contact_page_section .contact_inner .contact_form form .form-group input:invalid[focused="true"]{ + border: 1px solid tomato; +} + +.contact_page_section .contact_inner .contact_form form .form-group input:invalid[focused="true"] ~ span{ + display: block; +} + .contact_page_section .contact_inner .contact_form @@ -4585,6 +4687,55 @@ header.fix_style.white_header { padding: 20px 0 0 0; } +/* Loader */ + +.loader{ + border-radius: 100%; + position: relative; +} + +.loader-sm{ + width: 24px; + height: 24px; +} + +/* LOADER 1 */ + +#loader-1:before, #loader-1:after{ + content: ""; + position: absolute; + width: 100%; + height: 100%; + border-radius: 100%; + border: 3.5px solid transparent; + border-top-color: var(--body-text-purple); +} + +#loader-1:before{ + z-index: 100; + animation: spin 1.5s infinite; +} + +#loader-1:after{ + border: 3.5px solid #ccc; +} + +@keyframes spin{ + 0%{ + -webkit-transform: rotate(0deg); + -ms-transform: rotate(0deg); + -o-transform: rotate(0deg); + transform: rotate(0deg); + } + + 100%{ + -webkit-transform: rotate(360deg); + -ms-transform: rotate(360deg); + -o-transform: rotate(360deg); + transform: rotate(360deg); + } +} + @media screen and (max-width: 992px) { .navbar-expand-lg .navbar-nav .has_dropdown .drp_btn { position: absolute !important; diff --git a/src/assets/images/features_frame.png b/src/assets/images/features_frame.png index 108be64..c491759 100644 Binary files a/src/assets/images/features_frame.png and b/src/assets/images/features_frame.png differ diff --git a/src/assets/images/screen-1.png b/src/assets/images/screen-1.png index ad0570a..0c34c92 100644 Binary files a/src/assets/images/screen-1.png and b/src/assets/images/screen-1.png differ diff --git a/src/assets/images/screen-2.png b/src/assets/images/screen-2.png index cb5385e..02d967c 100644 Binary files a/src/assets/images/screen-2.png and b/src/assets/images/screen-2.png differ diff --git a/src/assets/images/screen-3.png b/src/assets/images/screen-3.png index 683463e..032ec41 100644 Binary files a/src/assets/images/screen-3.png and b/src/assets/images/screen-3.png differ diff --git a/src/assets/images/screen-4.png b/src/assets/images/screen-4.png index e437842..306822c 100644 Binary files a/src/assets/images/screen-4.png and b/src/assets/images/screen-4.png differ diff --git a/src/assets/images/screen-5.png b/src/assets/images/screen-5.png index eeecd2b..893e92f 100644 Binary files a/src/assets/images/screen-5.png and b/src/assets/images/screen-5.png differ diff --git a/src/assets/images/screen.png b/src/assets/images/screen.png index e9eb2f4..7b1d4cb 100644 Binary files a/src/assets/images/screen.png and b/src/assets/images/screen.png differ diff --git a/src/component/Contact/Main.js b/src/component/Contact/Main.js index 1c4855d..5ab1a9f 100644 --- a/src/component/Contact/Main.js +++ b/src/component/Contact/Main.js @@ -1,11 +1,129 @@ -import React, { useEffect } from "react"; -import { Link } from "react-router-dom"; +/** @format */ + +import React, { useEffect, useState } from "react"; +import { Link, useNavigate } from "react-router-dom"; import Bredcrumb from "../Bredcrumb/Main"; import BGImg from "../../assets/images/bread_crumb_bg.png"; import BGImg1 from "../../assets/images/bread_crumb_bg_one.png"; import BGImg2 from "../../assets/images/bread_crumb_bg_two.png"; +import SuccessImg from "../../assets/images/experts_01.png" + +import SiteService from "../../vendors/service/siteService"; + +// Form Inputs +const FormInput = (props) => { + let { + name, + type, + placeholder, + required, + maxLenght, + errorMessage, + value, + onChange, + pattern, + } = props; + + const [focused, setFocused] = useState(false); + const handleFocus = () => { + return setFocused(true); + }; + + return ( +
+ + {errorMessage} +
+ ); +}; const Main = ({ brdcum }) => { + let response = document.getElementById("contact_loader"); + let contact_body = document.getElementById("contact_body"); + let errText = document.getElementById("errText"); + let navigate = useNavigate(); + + // Form Validation + const [values, setValues] = useState({ + name: "", + email: "", + phone: "", + message: "", + country: "", + }); //initial state values + const [countries, setCountries] = useState([]); // initial state for country dropdown + const [myData, setMyData] = useState(null); + // Gave a generic name for multiple calls + const API_CALL = new SiteService(); // instantiating the class + // API CALL + const allCountry = () => { + return API_CALL.countryData(); + }; + const contactForm = async (value) => { + return await API_CALL.contactData(value); + }; + + const onChange = (e) => { + setValues((prev) => ({ ...prev, [e.target.name]: e.target.value })); + }; + console.log(values); + + // Submitting form + const handleSubmit = async (e) => { + e.preventDefault(); + + response.innerHTML = `
`; + + contactForm(values) + .then((contact) => { + setMyData(contact); + + // Checking for errors + if (contact?.data?.status < 1 || contact?.data?.message_id == "") + return (errText.textContent = + "unable to send your message, please try able"); + else { + response.innerHTML = `

SEND MESSAGE

`; + + contact_body.innerHTML = `
+
+

We have received your message and will follow up promptly.

+
`; + setTimeout(() => { + navigate("/"); + }, 10000); + + setValues((prev) => ({ ...prev, [e.target.name]: "" })); + } + }) + .catch((error) => { + console.log(error); + }); + }; + + //CALLS THE API AFTER COMPONENT LOADS + useEffect(() => { + allCountry().then((data) => setCountries(Object.values(data.data))); + }, []); + + useEffect(() => { + console.log(myData); + }, [myData]); + return ( <> {brdcum.b1 && ( @@ -57,106 +175,178 @@ const Main = ({ brdcum }) => { /> )} -
+
-
+

- Leave a message + Leave a message

Fill up form below, our team will get back soon

-
-
- -
-
- -
+ + {/* Contact Form */} + + + +
- + + {countries.length > 0 && + countries.map((country, index) => ( + + ))}
-
- -
+ +
+ value={values.msg} + errorMessage='words have exceeded 350 characters!' + onChange={onChange} + maxLength={300} + pattern="^[A-Za-z0-9]{5, 300}$" + />
- +
-
+ {/* Error Tag */} +

+ + {/* Contact Info */}
- image + image

- Have any question? + Have any question?

If you have any question about our product, service, payment or company, Visit our FAQs page.

- + READ FAQ @@ -165,7 +355,7 @@ const Main = ({ brdcum }) => {
-
+
); diff --git a/src/component/Home/Main.js b/src/component/Home/Main.js index 1918c58..eb10528 100644 --- a/src/component/Home/Main.js +++ b/src/component/Home/Main.js @@ -2,27 +2,17 @@ import { HashLink as Link } from "react-router-hash-link"; import React, { useEffect, useState } from "react"; import AOS from "aos"; import OwlCarousel from "react-owl-carousel"; -//import Trusted from "../HomeMain/Trusted/Main"; import Features from "../HomeMain/Features/Main"; -//import AboutApp from "../HomeMain/AboutApp/Main"; -//import Design from "../HomeMain/Design/Main"; import Work from "../HomeMain/Work/Main"; -//import Testimonial from "../HomeMain/Testimonial/Main"; -//import Pricing from "../HomeMain/Pricing/Main"; import Faq from "../HomeMain/Faq/Main"; import Interface from "../HomeMain/Interface/Main"; import Download from "../HomeMain/Download/Main"; import Story from "../HomeMain/Story/Main"; - import anim from "../../assets/images/anim_line.png"; import blueapp from "../../assets/images/appstore_blue.png"; import whiteapp from "../../assets/images/appstore_white.png"; import blue from "../../assets/images/googleplay_blue.png"; import white from "../../assets/images/googleplay_white.png"; -//import used1 from "../../assets/images/used01.png"; -//import used2 from "../../assets/images/used02.png"; -//import used3 from "../../assets/images/used03.png"; -//import used4 from "../../assets/images/used04.png"; import msg from "../../assets/images/message_icon.png"; import shield from "../../assets/images/shield_icon.png"; import screen from "../../assets/images/screen.png"; diff --git a/src/component/HomeMain/Faq/Main.js b/src/component/HomeMain/Faq/Main.js index f2c8093..28e5921 100644 --- a/src/component/HomeMain/Faq/Main.js +++ b/src/component/HomeMain/Faq/Main.js @@ -1,8 +1,21 @@ -import React ,{ useState } from 'react' +import React ,{ useState, useEffect } from 'react' +import SiteService from '../../../vendors/service/siteService' const Main = ({gredient}) => { - const[activeFaq, setActiveFaq] = useState({a : true}) + const[activeFaq, setActiveFaq] = useState({btn0 : false}) + + const [faqs, setFaqs] = useState([]); // initial state for FAQs before API call + + let faqServices = new SiteService(); // instantiating the class + + const allFaqData = () => { + return faqServices.faqData(); + }; + + useEffect(() => { + allFaqData().then((data) => setFaqs(data.data)); + }, []); return ( <> @@ -16,7 +29,7 @@ const Main = ({gredient}) => {
-
+ {/*

-
+
*/} + + {/* displays loading ... while the page fetches the FAQs */} + {faqs.length < 1 &&

Loading...

} + + {faqs.length > 0 && faqs.map((faq, index) => { + let id = `heading${index}`; //headingSeven + let target = `collapse${index}`; //#collapseSeven + + return( +
+
+

+ +

+
+ +
+
+

{faq.text}

+
+
+
+ ) + })}
diff --git a/src/component/HomeMain/Features/Main.js b/src/component/HomeMain/Features/Main.js index 81d8b66..ca9d0b9 100644 --- a/src/component/HomeMain/Features/Main.js +++ b/src/component/HomeMain/Features/Main.js @@ -68,8 +68,7 @@ const Main = ({video}) => {

Features that makes app different!

-

Lorem Ipsum is simply dummy text of the printing and typese tting
indus orem Ipsum has beenthe - standard dummy.

+

Fitness Integration with your health plan in your pocket bolsters
healthier life by tracking and experiencing life-changing results.

diff --git a/src/component/HomeMain/Pricing/Main.js b/src/component/HomeMain/Pricing/Main.js index fb75738..171b3bf 100644 --- a/src/component/HomeMain/Pricing/Main.js +++ b/src/component/HomeMain/Pricing/Main.js @@ -1,13 +1,30 @@ import { Link } from 'react-router-dom' -import React , { useState} from 'react' +import React , { useState, useEffect} from 'react' +import AOS from "aos"; import img1 from '../../../assets/images/standard.png' import img2 from '../../../assets/images/unlimited.png' import img3 from '../../../assets/images/premium.png' +import SiteService from '../../../vendors/service/siteService' + const Main = ({gredient , video}) => { const[tog, setTog] = useState() + const [prices, setPrices] = useState([]); // initial state for FAQs before API call + + let priceServices = new SiteService(); // instantiating the class + + const getAllPriceData = () => { + return priceServices.priceData(); + }; + + useEffect(() => { + getAllPriceData().then((data) => setPrices(data.data)); + AOS.init(); + AOS.refresh(); + }, []); + return ( <> {gredient ? @@ -29,37 +46,52 @@ const Main = ({gredient , video}) => {
-
-
-
- image -
-
-

Standard

- For the basics -
- $15 -
    -
  • -

    Up to 5 Website

    -
  • -
  • -

    50 GB disk space

    -
  • -
  • -

    10 Customize sub pages

    -
  • -
  • -

    2 Domains access

    -
  • -
  • -

    Support on request

    -
  • -
- BUY NOW -
-
-
+ + {prices.length > 0 && + prices.map((price, index) => { + if (index % 2 == 0) { + return ( +
+
+
+ { video ? image : image } +
+
+

{price.title}

+ {price.text} +
+ {price.price} +
    + {price.features.map((feature, index)=>

    {feature}

    )} +
+ Start Now +
+
+ ); + } else { + return ( +
+
+
+ { video ? image : image } +
+
+

{price.title}

+ {price.text} +
+ {price.price} +
    + {price.features.map((feature, index)=>

    {feature}

    )} +
+ Start Now +
+
+ ); + } + }) + } + + {/*
image @@ -86,136 +118,60 @@ const Main = ({gredient , video}) => {

24/7 Customer support

- BUY NOW + Start Now
-
-
-
-
- image -
-
-

Premium

- For small team -
- $55 -
    -
  • -

    Up to 10 Website

    -
  • -
  • -

    100 GB disk space

    -
  • -
  • -

    15 Customize sub pages

    -
  • -
  • -

    4 Domains access

    -
  • -
  • -

    24/7 Customer support

    -
  • -
- BUY NOW -
-
+
*/} +
-
-
-
- image -
-
-

Standard

- For the basics -
- $150 -
    -
  • -

    Up to 10 Website

    -
  • -
  • -

    100 GB disk space

    -
  • -
  • -

    25 Customize sub pages

    -
  • -
  • -

    4 Domains access

    -
  • -
  • -

    Support on request

    -
  • -
- BUY NOW -
-
-
-
-
- image -
-
-

Unlimited

- For the professionals -
- $999 -
    -
  • -

    Unlimited Website

    -
  • -
  • -

    400 GB disk space

    -
  • -
  • -

    40 Customize sub pages

    -
  • -
  • -

    20 Domains access

    -
  • -
  • -

    24/7 Customer support

    -
  • -
- BUY NOW -
-
+ {prices.length > 0 && + prices.map((price, index) => { + if (index % 2 == 0) { + return ( +
+
+
+ { video ? image : image } +
+
+

{price.title}

+ {price.text} +
+ {price.price} +
    + {price.features.map((feature, index)=>

    {feature}

    )} +
+ Start Now +
+
+ ); + } else { + return ( +
+
+
+ { video ? image : image } +
+
+

{price.title}

+ {price.text} +
+ {price.price} +
    + {price.features.map((feature, index)=>

    {feature}

    )} +
+ Start Now +
+
+ ); + } + }) + } -
-
-
- image -
-
-

Premium

- For small team -
- $550 -
    -
  • -

    Up to 20 Website

    -
  • -
  • -

    200 GB disk space

    -
  • -
  • -

    25 Customize sub pages

    -
  • -
  • -

    8 Domains access

    -
  • -
  • -

    24/7 Customer support

    -
  • -
- BUY NOW -
-
@@ -241,193 +197,101 @@ const Main = ({gredient , video}) => {
-
-
-
- { video ? image : image } -
-
-

Standard

- For the basics -
- $15 -
    -
  • -

    Up to 5 Website

    -
  • -
  • -

    50 GB disk space

    -
  • -
  • -

    10 Customize sub pages

    -
  • -
  • -

    2 Domains access

    -
  • -
  • -

    Support on request

    -
  • -
- BUY NOW -
-
-
-
-
- { video ? image : image } -
-
-

Unlimited

- For the professionals -
- $99 -
    -
  • -

    Unlimited Website

    -
  • -
  • -

    200 GB disk space

    -
  • -
  • -

    20 Customize sub pages

    -
  • -
  • -

    10 Domains access

    -
  • -
  • -

    24/7 Customer support

    -
  • -
- BUY NOW -
-
-
-
-
- {video ? image : image } -
-
-

Premium

- For small team -
- $55 -
    -
  • -

    Up to 10 Website

    -
  • -
  • -

    100 GB disk space

    -
  • -
  • -

    15 Customize sub pages

    -
  • -
  • -

    4 Domains access

    -
  • -
  • -

    24/7 Customer support

    -
  • -
- BUY NOW -
-
+ + {prices.length > 0 && + prices.map((price, index) => { + if (index % 2 == 0) { + return ( +
+
+
+ { video ? image : image } +
+
+

{price.title}

+ {price.text} +
+ {price.price} +
    + {price.features.map((feature, index)=>

    {feature}

    )} +
+ Start Now +
+
+ ); + } else { + return ( +
+
+
+ { video ? image : image } +
+
+

{price.title}

+ {price.text} +
+ {price.price} +
    + {price.features.map((feature, index)=>

    {feature}

    )} +
+ Start Now +
+
+ ); + } + }) + } +
-
-
-
- { video ? image : image } -
-
-

Standard

- For the basics -
- $150 -
    -
  • -

    Up to 10 Website

    -
  • -
  • -

    100 GB disk space

    -
  • -
  • -

    25 Customize sub pages

    -
  • -
  • -

    4 Domains access

    -
  • -
  • -

    Support on request

    -
  • -
- BUY NOW -
-
-
-
-
- { video ? image : } -
-
-

Unlimited

- For the professionals -
- $999 -
    -
  • -

    Unlimited Website

    -
  • -
  • -

    400 GB disk space

    -
  • -
  • -

    40 Customize sub pages

    -
  • -
  • -

    20 Domains access

    -
  • -
  • -

    24/7 Customer support

    -
  • -
- BUY NOW -
-
+ {prices.length > 0 && + prices.map((price, index) => { + if (index % 2 == 0) { + return ( +
+
+
+ { video ? image : image } +
+
+

{price.title}

+ {price.text} +
+ {price.price} +
    + {price.features.map((feature, index)=>

    {feature}

    )} +
+ Start Now +
+
+ ); + } else { + return ( +
+
+
+ { video ? image : image } +
+
+

{price.title}

+ {price.text} +
+ {price.price} +
    + {price.features.map((feature, index)=>

    {feature}

    )} +
+ Start Now +
+
+ ); + } + }) + } -
-
-
- {video ? image : image } -
-
-

Premium

- For small team -
- $550 -
    -
  • -

    Up to 20 Website

    -
  • -
  • -

    200 GB disk space

    -
  • -
  • -

    25 Customize sub pages

    -
  • -
  • -

    8 Domains access

    -
  • -
  • -

    24/7 Customer support

    -
  • -
- BUY NOW -
-
diff --git a/src/component/HomeMain/Work/Main.js b/src/component/HomeMain/Work/Main.js index 14051b9..732135d 100644 --- a/src/component/HomeMain/Work/Main.js +++ b/src/component/HomeMain/Work/Main.js @@ -20,8 +20,7 @@ const Main = ({dark}) => {

How it works - 3 easy steps

-

Lorem Ipsum is simply dummy text of the printing and typese tting
indus orem Ipsum has beenthe - standard dummy.

+

myFit has powerful connectivity, fitness, health, and safety features,
Also makes provision Fitness tracking,Workout tracking,Heart rate monitoring.

    diff --git a/src/component/Pages/Faq/Main.js b/src/component/Pages/Faq/Main.js index a237cfe..a98e1c8 100644 --- a/src/component/Pages/Faq/Main.js +++ b/src/component/Pages/Faq/Main.js @@ -5,9 +5,23 @@ import BGImg from "../../../assets/images/bread_crumb_bg.png" import BGImg1 from "../../../assets/images/bread_crumb_bg_one.png" import BGImg2 from "../../../assets/images/bread_crumb_bg_two.png" +import SiteService from '../../../vendors/service/siteService' + const Main = ({brdcum}) => { - const[activeFaq, setActiveFaq] = useState({a : true}) + const[activeFaq, setActiveFaq] = useState({btn0 : false}) + + const [faqs, setFaqs] = useState([]); // initial state for FAQs before API call + + let faqServices = new SiteService(); // instantiating the class + + const allFaqData = () => { + return faqServices.faqData(); + }; + + useEffect(() => { + allFaqData().then((data) => setFaqs(data.data)); + }, []); return ( <> {brdcum.b1 && @@ -54,7 +68,8 @@ const Main = ({brdcum}) => {
    -
    + + {/*

    -
    -
    +
    */} + + {/*

    -
    +
    */} -
    + {/*

    -
    +
    */} -
    + {/*

    -
    +
*/} -
+ {/*

-
+
*/} -
+ {/*

-
+
*/} -
+ {/*

+
*/} + + {/* displays loading ... while the page fetches the FAQs */} + {faqs.length < 1 &&

Loading...

} + + {faqs.length > 0 && faqs.map((faq, index) => { + let id = `heading${index}`; //headingSeven + let target = `collapse${index}`; //#collapseSeven + + return( +
+
+

+ +

+
+ +
+
+

{faq.text}

+
+
+ ) + })}
diff --git a/src/vendors/service/siteService.js b/src/vendors/service/siteService.js index 7a6ba2b..87daa14 100644 --- a/src/vendors/service/siteService.js +++ b/src/vendors/service/siteService.js @@ -5,14 +5,29 @@ class SiteService { constructor() { console.log("Er are here anyway"); } + // Blog Data {Get} blogData() { return this.getAuxEnd(`/blogdata`, null); } - countryData() {} + // Country Data {GET} + countryData() { + return this.getAuxEnd("/country", null); + } - faqData() {} + // Contact Data{POST} + contactData() { + return this.postAuxEnd("/contact", null) + } + faqData() { + return this.getAuxEnd("/faq", null); + } + + priceData() { + return this.getAuxEnd("/pricing", null); + } + //---------------------------------------- ----- //---------------------------------------- ----- // Unified call below @@ -24,7 +39,7 @@ class SiteService { .then((response) => { // console.log(response); // res = response; - console.log("~~~~~~~ Toks2 GET ~~~~~~~~"); + // console.log("~~~~~~~ Toks2 GET ~~~~~~~~"); return response; }) .catch((error) => { @@ -43,10 +58,10 @@ class SiteService { postAuxEnd(uri, reqData) { const endPoint = process.env.REACT_APP_AUX_ENDPOINT + uri; - Axios.post(endPoint) + return Axios.post(endPoint, reqData) .then((response) => { console.log(response); - res = response; + // res = response; console.log("~~~~~~~ Toks2 POST ~~~~~~~~"); return response; })