diff --git a/frontend/src/components/ConsultantRow.tsx b/frontend/src/components/ConsultantRow.tsx index 58143851..468230cc 100644 --- a/frontend/src/components/ConsultantRow.tsx +++ b/frontend/src/components/ConsultantRow.tsx @@ -1,5 +1,5 @@ "use client"; -import { BookingType, Consultant } from "@/types"; +import { BookingType, Consultant, DetailedBooking } from "@/types"; import { ReactElement, useState } from "react"; import { AlertTriangle, @@ -12,17 +12,14 @@ import { } from "react-feather"; import InfoPill from "./InfoPill"; -interface ConsultantListElementProps { - consultant: Consultant; -} - export default function ConsultantRows({ consultant, }: { consultant: Consultant; }) { const [isListElementVisible, setIsListElementVisible] = useState(false); - const [isButtonHovered, setIsButtonHovered] = useState(false); + const [isRowHovered, setIsRowHovered] = useState(false); + const [hoveredRowWeek, setHoveredRowWeek] = useState(-1); function toggleListElementVisibility() { setIsListElementVisible(!isListElementVisible); @@ -32,14 +29,14 @@ export default function ConsultantRows({ <>
+ {db.bookingDetails.name} +
++ { + db.hours.find( + (hour) => hour.week % 100 == b.weekNumber, + )?.hours + } +
+