From 50e44dab43aa54d6769e68c284d19060ad3a8a91 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Thu, 21 Mar 2024 17:37:57 +0100 Subject: [PATCH] initial commit --- src/components/OffersInterest/OthersInterestedTable.jsx | 7 ++++++- src/views/ManageInterestOfferPage.jsx | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/OffersInterest/OthersInterestedTable.jsx b/src/components/OffersInterest/OthersInterestedTable.jsx index dd9933f..aa2ced7 100644 --- a/src/components/OffersInterest/OthersInterestedTable.jsx +++ b/src/components/OffersInterest/OthersInterestedTable.jsx @@ -56,13 +56,18 @@ export default function OthersInterestTable({othersInterestedList, className}) { {currentOthersInterestedList?.map((item, index) => { + const image = localStorage.getItem("session_token") + ? `${othersInterestedList.imageServer}${localStorage.getItem("session_token")}/job/${ + item.job_uid + }` + : ""; return (
data diff --git a/src/views/ManageInterestOfferPage.jsx b/src/views/ManageInterestOfferPage.jsx index 4cd986c..9c39689 100644 --- a/src/views/ManageInterestOfferPage.jsx +++ b/src/views/ManageInterestOfferPage.jsx @@ -12,7 +12,7 @@ export default function MyReviewDueJobsPage() { let { othersInterestedTable } = useSelector((state) => state.tableReload); // FOR OTHERS INTERESTED TABLE RELOAD const apiCall = new usersService(); - const [othersInterestedList, setOthersInterestedList] = useState({loading: true, data: []}) + const [othersInterestedList, setOthersInterestedList] = useState({loading: true, data: [], imageServer:''}) useEffect(() => { if(!state){ @@ -26,9 +26,9 @@ export default function MyReviewDueJobsPage() { }else{ newData = [] } - setOthersInterestedList({loading: false, data: newData}) + setOthersInterestedList({loading: false, data: newData, imageServer:res.data.session_image_server}) }).catch(err => { - setOthersInterestedList({loading: false, data: []}) + setOthersInterestedList({loading: false, data: [], imageServer:''}) console.log('Error: ', err) }) }, [othersInterestedTable]);