Compare commits

...

5 Commits

Author SHA1 Message Date
victorAnumudu 6f5d72e033 merge master 2024-03-21 20:33:37 +01:00
ameye 762de4c23e Merge branch 'market-job-event' of WrenchBoard/Users-Wrench into master 2024-03-21 17:13:37 +00:00
victorAnumudu 2a8b7ba6ec updated marketjob-addded to marketjob-added 2024-03-21 18:05:48 +01:00
victorAnumudu 50e44dab43 initial commit 2024-03-21 17:37:57 +01:00
ameye 7649a90c47 Merge branch 'job-interest-modal' of WrenchBoard/Users-Wrench into master 2024-03-21 15:30:37 +00:00
4 changed files with 28 additions and 21 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export default function SocketIOContextProvider({children}) {
const marketUpdate = (message, room) => {
if(message && room){
socket.emit("marketjob_addded", { message, room });
socket.emit("marketjob_added", { message, room });
}
};
+18 -16
View File
@@ -29,14 +29,15 @@ const AccountDashboard = ({ className, bannerList }) => {
props;
return (
<TopBanner
btn={short_button_text}
image={image}
title={short_title}
desc={short_description}
link_path={link_path}
key={idx}
/>
<div key={idx}>
<TopBanner
btn={short_button_text}
image={image}
title={short_title}
desc={short_description}
link_path={link_path}
/>
</div>
);
})}
</div>
@@ -48,14 +49,15 @@ const AccountDashboard = ({ className, bannerList }) => {
props;
return (
<LowerBanner
btn={short_button_text}
image={image}
title={short_title}
desc={short_description}
link_path={link_path}
key={idx}
/>
<div key={idx}>
<LowerBanner
btn={short_button_text}
image={image}
title={short_title}
desc={short_description}
link_path={link_path}
/>
</div>
);
})}
</div>
@@ -56,13 +56,18 @@ export default function OthersInterestTable({othersInterestedList, className}) {
</thead>
<tbody className="h-full">
{currentOthersInterestedList?.map((item, index) => {
const image = localStorage.getItem("session_token")
? `${othersInterestedList.imageServer}${localStorage.getItem("session_token")}/job/${
item.job_uid
}`
: "";
return (
<tr key={index} className="bg-white dark:bg-dark-white border-b dark:border-[#5356fb29] hover:bg-gray-50">
<td className=" py-4">
<div className="flex space-x-2 items-center">
<div className="min-w-[60px] min-h-[60px] rounded-full overflow-hidden flex justify-center items-center">
<img
src={dataImage1}
src={image}
alt="data"
className="w-full h-full"
/>
+3 -3
View File
@@ -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]);