diff --git a/.env b/.env index 27d706e..4fd8113 100644 --- a/.env +++ b/.env @@ -105,4 +105,7 @@ REACT_APP_ANDROID_APP='https://play.google.com/store/apps/details?id=com.wrenchb REACT_APP_APPLE_APP='https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls=1&mt=8' # Displays the new family dashboard with boxes -REACT_APP_SHOW_NEW_FAMILY_DASH=1 \ No newline at end of file +REACT_APP_SHOW_NEW_FAMILY_DASH=1 + +# Displays the account dashboard +REACT_APP_SHOW_ACCOUNT_DASH=1 \ No newline at end of file diff --git a/.env.development b/.env.development index 158c2c7..f5bc221 100644 --- a/.env.development +++ b/.env.development @@ -73,4 +73,7 @@ REACT_APP_ANDROID_APP='https://play.google.com/store/apps/details?id=com.wrenchb REACT_APP_APPLE_APP='https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls=1&mt=8' # Displays the new family dashboard with boxes -REACT_APP_SHOW_NEW_FAMILY_DASH=1 \ No newline at end of file +REACT_APP_SHOW_NEW_FAMILY_DASH=1 + +# Displays the account dashboard +REACT_APP_SHOW_ACCOUNT_DASH=1 \ No newline at end of file diff --git a/.env.production b/.env.production index 4268f04..e2a00a2 100644 --- a/.env.production +++ b/.env.production @@ -80,3 +80,6 @@ REACT_APP_APPLE_APP='https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls # Displays the new family dashboard with boxes REACT_APP_SHOW_NEW_FAMILY_DASH=0 + +# Displays the account dashboard +REACT_APP_SHOW_ACCOUNT_DASH=0 \ No newline at end of file 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} >