Merge branch 'market-date-format' of WrenchBoard/Users-Wrench into master
This commit is contained in:
@@ -5,7 +5,6 @@ import MarketPopUp from "../MarketPlace/PopUp/MarketPopUp";
|
|||||||
export default function AvailableJobsCard({
|
export default function AvailableJobsCard({
|
||||||
className,
|
className,
|
||||||
datas,
|
datas,
|
||||||
key,
|
|
||||||
hidden = false,
|
hidden = false,
|
||||||
contentDisplay,
|
contentDisplay,
|
||||||
image_server,
|
image_server,
|
||||||
@@ -38,7 +37,6 @@ 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={`card-style-two w-full h-[426px] p-[20px] bg-white dark:bg-dark-white rounded-2xl section-shadow ${
|
||||||
className || ""
|
className || ""
|
||||||
}`}
|
}`}
|
||||||
key={key}
|
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -57,7 +55,7 @@ export default function AvailableJobsCard({
|
|||||||
Added
|
Added
|
||||||
</p>
|
</p>
|
||||||
<p className="text-base text-dark-gray dark:text-white">
|
<p className="text-base text-dark-gray dark:text-white">
|
||||||
{datas.offer_added}
|
{new Date(datas.offer_added).toLocaleDateString()}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -68,7 +66,7 @@ export default function AvailableJobsCard({
|
|||||||
Expires
|
Expires
|
||||||
</p>
|
</p>
|
||||||
<p className="text-base text-dark-gray dark:text-white text-right">
|
<p className="text-base text-dark-gray dark:text-white text-right">
|
||||||
{datas.expire}
|
{new Date(datas.expire).toLocaleDateString()}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -109,12 +109,13 @@ export default function MainSection({
|
|||||||
endLength={products?.length}
|
endLength={products?.length}
|
||||||
>
|
>
|
||||||
{({ datas }) => (
|
{({ datas }) => (
|
||||||
<AvailableJobsCard
|
<div key={datas.job_uid}>
|
||||||
contentDisplay={contentDisplay}
|
<AvailableJobsCard
|
||||||
image_server={image_server}
|
contentDisplay={contentDisplay}
|
||||||
key={datas.job_uid}
|
image_server={image_server}
|
||||||
datas={datas}
|
datas={datas}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</DataIteration>
|
</DataIteration>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user