From 41ce5d3003ea5dae32d21bde1cf030d5f801ccd9 Mon Sep 17 00:00:00 2001 From: Ida Marie Andreassen Date: Fri, 14 Jun 2024 13:38:10 +0200 Subject: [PATCH] Fix: add link to project page from customerpage, and add underline to all links --- frontend/src/components/CostumerTable/CustomerRow.tsx | 2 +- .../src/components/CostumerTable/EngagementRow.tsx | 10 +++++++--- .../src/components/Staffing/DetailedBookingRows.tsx | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/CostumerTable/CustomerRow.tsx b/frontend/src/components/CostumerTable/CustomerRow.tsx index cdf6799f..dc21a6f4 100644 --- a/frontend/src/components/CostumerTable/CustomerRow.tsx +++ b/frontend/src/components/CostumerTable/CustomerRow.tsx @@ -98,7 +98,7 @@ export default function CostumerRow({

{engagement.isBillable ? "Fakturerbart" : "Ikke-fakturerbart"}

-

+

{engagement.engagementName}

diff --git a/frontend/src/components/CostumerTable/EngagementRow.tsx b/frontend/src/components/CostumerTable/EngagementRow.tsx index 44061e5b..c7ced0e9 100644 --- a/frontend/src/components/CostumerTable/EngagementRow.tsx +++ b/frontend/src/components/CostumerTable/EngagementRow.tsx @@ -15,6 +15,7 @@ import { DateTime } from "luxon"; import { getBookingTypeFromProjectState } from "../Staffing/EditEngagementHourModal/utils"; import { FilteredContext } from "@/hooks/ConsultantFilterProvider"; import { filterConsultants } from "@/hooks/staffing/useConsultantsFilter"; +import Link from "next/link"; export default function EngagementRows({ engagement, @@ -101,9 +102,12 @@ export default function EngagementRows({ -
+

@@ -114,7 +118,7 @@ export default function EngagementRows({ engagement.isBillable ? "Fakturerbart" : "Ikke fakturerbart" }`}

-
+ {weekList.map((day) => ( diff --git a/frontend/src/components/Staffing/DetailedBookingRows.tsx b/frontend/src/components/Staffing/DetailedBookingRows.tsx index a18b577e..e7fd8197 100644 --- a/frontend/src/components/Staffing/DetailedBookingRows.tsx +++ b/frontend/src/components/Staffing/DetailedBookingRows.tsx @@ -105,7 +105,7 @@ export function DetailedBookingRows(props: { > {getIconByBookingType(detailedBooking.bookingDetails.type, 20)} -
+