diff --git a/src/index.js b/src/index.js index 3e4516a..466639c 100644 --- a/src/index.js +++ b/src/index.js @@ -14,7 +14,7 @@ import { cibGmail } from "@coreui/icons"; import { createRoot } from "react-dom/client"; const setupAxios = () => { - // axios.defaults.baseURL = "http://localhost:5000"; + //axios.defaults.baseURL = "http://localhost:5000"; axios.defaults.baseURL = "https://api.smellika.com"; axios.defaults.headers = { diff --git a/src/views/Affiliate/AffiliateHistory.jsx b/src/views/Affiliate/AffiliateHistory.jsx index dfb4c61..21d76cc 100644 --- a/src/views/Affiliate/AffiliateHistory.jsx +++ b/src/views/Affiliate/AffiliateHistory.jsx @@ -54,7 +54,7 @@ const AffiliateHistory = () => { }, }) .then((response) => { - // console.log(response.data.message.affiliate_pay_history); + console.log(response.data); setApiData(response.data.message.affiliate_pay_history); setName(response.data.message.name); setLoading(false); diff --git a/src/views/Affiliate/CouponHistory.jsx b/src/views/Affiliate/CouponHistory.jsx index 8b7e88f..97131eb 100644 --- a/src/views/Affiliate/CouponHistory.jsx +++ b/src/views/Affiliate/CouponHistory.jsx @@ -43,7 +43,7 @@ const CouponHistory = () => { const month = monthsMap[monthName]; // Create the rearranged date string - const rearrangedDate = `${day} ${month} ${year}`; + const rearrangedDate = `${day}-${month}-${year}`; return rearrangedDate; }; @@ -65,7 +65,6 @@ const CouponHistory = () => { }, }) .then((response) => { - // console.log(response.data.message.coupon_used_history); setLoading(false); setApiData(response.data.message.coupon_used_history); setCouponName(response.data.message.coupon_used_history[0].couponCode); @@ -110,11 +109,11 @@ const CouponHistory = () => { style={{ fontSize: "22px", fontWeight: "bold" }} className="fw-bold" > - Coupon History {couponName} + Coupon Claim History:{couponName}