diff --git a/frontend/src/components/Staffing/ConsultantRow.tsx b/frontend/src/components/Staffing/ConsultantRow.tsx index 69736fa9..d90a041d 100644 --- a/frontend/src/components/Staffing/ConsultantRow.tsx +++ b/frontend/src/components/Staffing/ConsultantRow.tsx @@ -1,7 +1,7 @@ "use client"; import { ConsultantReadModel, ProjectWithCustomerModel } from "@/api-types"; import React, { useContext, useEffect, useState } from "react"; -import { AlertCircle, ChevronDown, Plus } from "react-feather"; +import { AlertCircle, CheckCircle, ChevronDown, Plus } from "react-feather"; import { DetailedBookingRows } from "@/components/Staffing/DetailedBookingRows"; import { WeekCell } from "@/components/Staffing/WeekCell"; import { useModal } from "@/hooks/useModal"; @@ -161,7 +161,7 @@ export default function ConsultantRows({ .map((e) => e.bookingDetails.endDateAgreement); if (dates.some((e) => e === null)) { - return ; + return ; } else if (dates.length > 0) { const newestDate = dates.reduce((a, b) => { return new Date(a as string) < new Date(b as string) ? a : b; @@ -170,10 +170,12 @@ export default function ConsultantRows({ const now = DateTime.now(); const endDate = DateTime.fromISO(newestDate as string); if (endDate < now) { - return ; + return ; } else { - return null; + return ; } + } else { + return ; } } @@ -203,14 +205,13 @@ export default function ConsultantRows({ -
- {getAlert()} -
+
+
{consultant.imageThumbUrl ? ( {consultant.name} @@ -218,7 +219,7 @@ export default function ConsultantRows({
)}
-
+

+ {getAlert()} {isListElementVisible && (