diff --git a/src/components/Cards/AvailableJobsCard.jsx b/src/components/Cards/AvailableJobsCard.jsx index d536a12..36bc61e 100644 --- a/src/components/Cards/AvailableJobsCard.jsx +++ b/src/components/Cards/AvailableJobsCard.jsx @@ -1,10 +1,11 @@ -import { useEffect, useState } from "react"; +import { useState } from "react"; import { PriceFormatter } from "../Helpers/PriceFormatter"; import MarketPopUp from "../MarketPlace/PopUp/MarketPopUp"; export default function AvailableJobsCard({ className, datas, + key, hidden = false, contentDisplay, image_server, @@ -19,10 +20,10 @@ export default function AvailableJobsCard({ datas?.currency ); - useEffect(() => { - const imagePath = require(`../../assets/images/${datas.thumbnil}`); // Replace with your directory path for local images - setImageUrl(imagePath); - }, []); + // useEffect(() => { + // const imagePath = require(`../../assets/images/${datas.thumbnil}`); // Replace with your directory path for local images + // setImageUrl(imagePath); + // }, []); const image = localStorage.getItem("session_token") ? `${image_server}${localStorage.getItem("session_token")}/job/${ @@ -37,6 +38,7 @@ export default function AvailableJobsCard({ className={`card-style-two w-full h-[426px] p-[20px] bg-white dark:bg-dark-white rounded-2xl section-shadow ${ className || "" }`} + key={key} >
{ @@ -75,34 +77,16 @@ export default function AvailableJobsCard({
-
{datas.description}
+
+ {datas.description} +
-
- {/*
*/} - {/* {datas.isActive && (*/} - {/* */} - {/* Active*/} - {/**/} - {/* )}*/} - {/*
*/} - - {/*
*/} - {/* */} - {/* */} - {/* */} - {/*
*/} -
+
diff --git a/src/components/Home/FullAccountDash.jsx b/src/components/Home/FullAccountDash.jsx index 1329218..0a37391 100644 --- a/src/components/Home/FullAccountDash.jsx +++ b/src/components/Home/FullAccountDash.jsx @@ -59,6 +59,8 @@ export default function FullAccountDash(props) { } }; + console.log(process.env.REACT_APP_SHOW_ACCOUNT_DASH) + return ( <>
diff --git a/src/components/MarketPlace/MainSection.jsx b/src/components/MarketPlace/MainSection.jsx index dc493c0..f823c94 100644 --- a/src/components/MarketPlace/MainSection.jsx +++ b/src/components/MarketPlace/MainSection.jsx @@ -112,7 +112,7 @@ export default function MainSection({ )}