From 3c422d9036e2a63376e0b6b4f4559ddf41845606 Mon Sep 17 00:00:00 2001
From: victorAnumudu
Date: Wed, 28 Feb 2024 10:08:26 +0100
Subject: [PATCH] formatted date style
---
src/components/Cards/AvailableJobsCard.jsx | 6 ++----
src/components/MarketPlace/MainSection.jsx | 13 +++++++------
2 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/src/components/Cards/AvailableJobsCard.jsx b/src/components/Cards/AvailableJobsCard.jsx
index 36bc61e..ab7d4c2 100644
--- a/src/components/Cards/AvailableJobsCard.jsx
+++ b/src/components/Cards/AvailableJobsCard.jsx
@@ -5,7 +5,6 @@ import MarketPopUp from "../MarketPlace/PopUp/MarketPopUp";
export default function AvailableJobsCard({
className,
datas,
- key,
hidden = false,
contentDisplay,
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 || ""
}`}
- key={key}
>
{
@@ -57,7 +55,7 @@ export default function AvailableJobsCard({
Added
- {datas.offer_added}
+ {new Date(datas.offer_added).toLocaleDateString()}
@@ -68,7 +66,7 @@ export default function AvailableJobsCard({
Expires
- {datas.expire}
+ {new Date(datas.expire).toLocaleDateString()}
diff --git a/src/components/MarketPlace/MainSection.jsx b/src/components/MarketPlace/MainSection.jsx
index f823c94..bf1ce6e 100644
--- a/src/components/MarketPlace/MainSection.jsx
+++ b/src/components/MarketPlace/MainSection.jsx
@@ -109,12 +109,13 @@ export default function MainSection({
endLength={products?.length}
>
{({ datas }) => (
-
+
)}