From 5769332e741922f537cc1d2fc6f7064c19992f13 Mon Sep 17 00:00:00 2001 From: Ebube Date: Thu, 22 Jun 2023 08:42:42 +0100 Subject: [PATCH] . --- .../MarketPlace/PopUp/MarketPopUp.jsx | 44 +++++++++++++------ 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/src/components/MarketPlace/PopUp/MarketPopUp.jsx b/src/components/MarketPlace/PopUp/MarketPopUp.jsx index a68d67a..b45f68a 100644 --- a/src/components/MarketPlace/PopUp/MarketPopUp.jsx +++ b/src/components/MarketPlace/PopUp/MarketPopUp.jsx @@ -4,6 +4,7 @@ import { toast } from "react-toastify"; import { Form, Formik } from "formik"; import usersService from "../../../services/UsersService"; import LoadingSpinner from "../../Spinners/LoadingSpinner"; +import { PriceFormatter } from "../../Helpers/PriceFormatter"; const MarketPopUp = ({ details, onClose, situation, marketInt }) => { const [marketMsg, setMarketMsg] = useState({ @@ -96,14 +97,18 @@ const MarketPopUp = ({ details, onClose, situation, marketInt }) => { [apiCall, details, onClose, textValue] ); - console.log('Checking my mangeInt',manageInt) + let thePrice = PriceFormatter( + details?.price * 0.01, + details?.currency_code, + details?.currency + ); // let addedIntDate = marketInt?.added?.split(" ")[0]; let expireIntDate = marketInt?.expire?.split(" ")[0]; return ( -
+

{details.offer_code} @@ -112,8 +117,8 @@ const MarketPopUp = ({ details, onClose, situation, marketInt }) => {

-
-
+
+

{details?.title}

@@ -128,7 +133,7 @@ const MarketPopUp = ({ details, onClose, situation, marketInt }) => { name: "", content: { text: `Timeline: ${details.timeline_days} day(s) -- `, - bold: `Budget: ${details.price} naira`, + bold: `Budget: ${thePrice}`, }, }, { @@ -138,7 +143,7 @@ const MarketPopUp = ({ details, onClose, situation, marketInt }) => { }, ].map(({ name, content, danger }, idx) => (
-
-
-
+
+

Interested in the task?


+
{/* END OF ACTION SECTION */}