Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: add link to project page from customerpage #495

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/components/CostumerTable/CustomerRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function CostumerRow({
<p className="xsmall text-black/75 whitespace-nowrap text-ellipsis overflow-x-hidden max-w-[145px]">
{engagement.isBillable ? "Fakturerbart" : "Ikke-fakturerbart"}
</p>
<p className="text-black text-start small">
<p className="text-black text-start small hover:underline">
{engagement.engagementName}
</p>
</Link>
Expand Down
10 changes: 7 additions & 3 deletions frontend/src/components/CostumerTable/EngagementRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -101,9 +102,12 @@ export default function EngagementRows({
</button>
</td>
<td>
<div className="flex flex-col gap-1 ">
<Link
href={`../prosjekt/${engagement.engagementId}`}
className="flex flex-col gap-1 "
>
<p
className={`text-black text-start ${
className={`text-black text-start hover:underline ${
isListElementVisible ? "normal-medium" : "normal"
}`}
>
Expand All @@ -114,7 +118,7 @@ export default function EngagementRows({
engagement.isBillable ? "Fakturerbart" : "Ikke fakturerbart"
}`}
</p>
</div>
</Link>
</td>
{weekList.map((day) => (
<td key={day.weekNumber} className={`h-[52px] p-0.5`}>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Staffing/DetailedBookingRows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function DetailedBookingRows(props: {
>
{getIconByBookingType(detailedBooking.bookingDetails.type, 20)}
</div>
<div className="flex flex-col justify-center text-left">
<div className="flex flex-col justify-center text-left hover:underline">
<p
className={`xsmall text-black/75 whitespace-nowrap text-ellipsis overflow-x-hidden max-w-[145px] ${
!(
Expand Down
Loading