diff --git a/src/components/MyActiveJobs/ActiveJobs.jsx b/src/components/MyActiveJobs/ActiveJobs.jsx index f06110e..1a55f96 100644 --- a/src/components/MyActiveJobs/ActiveJobs.jsx +++ b/src/components/MyActiveJobs/ActiveJobs.jsx @@ -278,7 +278,7 @@ function ActiveJobs(props) {

- {userDetails.firstname && userDetails.firstname} + {props.details.job_to && props.details.job_to}

Description:

diff --git a/src/components/OffersInterest/OffersInterestTable.jsx b/src/components/OffersInterest/OffersInterestTable.jsx index 176586f..c34daa6 100644 --- a/src/components/OffersInterest/OffersInterestTable.jsx +++ b/src/components/OffersInterest/OffersInterestTable.jsx @@ -5,6 +5,8 @@ import { useNavigate, useLocation, Link } from "react-router-dom"; import { handlePagingFunc } from "../Pagination/HandlePagination"; import PaginatedList from "../Pagination/PaginatedList"; +import { PriceFormatter } from "../Helpers/PriceFormatter"; + import familyImage from '../../assets/images/no-family-side.png' export default function OffersInterestTable({offerInterestList, className}) { @@ -72,87 +74,13 @@ export default function OffersInterestTable({offerInterestList, className}) {
- {/* - - - - - - - - - - - - 7473 ETH - */}

{item?.client_name}

- - - - - - - - - {/* - 6392.99$ - */} - {item?.price} - {item?.currency} + {/* {formatNumber(item?.price * 0.01)} */} + {PriceFormatter(item?.price * 0.01,item?.currency_code,item?.currency)}
@@ -214,3 +142,28 @@ export default function OffersInterestTable({offerInterestList, className}) {
); } + + + + +// Function to format number to two(2) decimal places +// function formatNumber(number) { +// // Convert the number to a string +// let numStr = String(number); + +// // Split the string into integer and decimal parts +// let parts = numStr.split('.'); +// let integerPart = parts[0]; +// let decimalPart = parts[1] || ''; + +// // Add thousands separators to the integer part +// let formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, ','); + +// // Truncate or pad the decimal part to two decimal points +// let formattedDecimal = decimalPart.slice(0, 2).padEnd(2, '0'); + +// // Combine the formatted integer and decimal parts +// let formattedNumber = formattedInteger + '.' + formattedDecimal; + +// return formattedNumber; +// } \ No newline at end of file