From 68d11612fe099cd8deff2f59bfa618351630feac Mon Sep 17 00:00:00 2001 From: Ida Marie Andreassen <43541032+idamand@users.noreply.github.com> Date: Mon, 17 Jun 2024 10:01:20 +0200 Subject: [PATCH] Fix: add link to project page from customerpage (#495) --- 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)} -
+