From 7f631190dc3cf909492b49b8e3fdad108afbe665 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Fri, 27 Sep 2024 18:23:32 +0100 Subject: [PATCH] bug fixed --- src/components/FamilyAcc/FamilyTableNew.jsx | 8 +-- src/components/jobPopout/OfferJobPopout.jsx | 64 ++++++++------------- 2 files changed, 29 insertions(+), 43 deletions(-) diff --git a/src/components/FamilyAcc/FamilyTableNew.jsx b/src/components/FamilyAcc/FamilyTableNew.jsx index 562957a..fcce0a7 100644 --- a/src/components/FamilyAcc/FamilyTableNew.jsx +++ b/src/components/FamilyAcc/FamilyTableNew.jsx @@ -73,26 +73,26 @@ export default function FamilyTableNew() { // Object that maps tab names to their corresponding components const tabComponents = { - Tasks: ( + tasks: ( ), - Waiting: ( + waiting: ( ), - Pending: ( + pending: ( ), }; - const defaultTabComponent = tabComponents.Tasks; + const defaultTabComponent = tabComponents.tasks; // Selected tab component based on the current 'tab' const selectedTabComponent = tabComponents[tab] || defaultTabComponent; diff --git a/src/components/jobPopout/OfferJobPopout.jsx b/src/components/jobPopout/OfferJobPopout.jsx index bdc00fc..4102146 100644 --- a/src/components/jobPopout/OfferJobPopout.jsx +++ b/src/components/jobPopout/OfferJobPopout.jsx @@ -145,48 +145,34 @@ function OfferJobPopout({ details, onClose, situation }) {
{/* INPUT SECTION */} -
-
- {/* */} - -

- { - (details.offer_added && details.offer_added?.split(" ")[0]) || - "default" - } -

+
+
+
+ +

+ { + (details.offer_added && details.offer_added?.split(" ")[0]) || + "default" + } +

+
+ +
+ +

{details.expire && details.expire.split(" ")[0]}

+
-
- {/* */} - -

{details.expire && details.expire.split(" ")[0]}

-
-
+
+
+ +

{thePrice}

+
-
-
- {/* */} - -

{thePrice}

-
- -
- {/* */} - -

{`${details.timeline_days} day(s)`}

+
+ +

{`${details.timeline_days} day(s)`}

+
-- 2.34.1