Skip to content

Commit f289057

Browse files
Merge pull request #168 from linked-planet/dev
Dev
2 parents 755c088 + 72d416f commit f289057

File tree

5 files changed

+183
-307
lines changed

5 files changed

+183
-307
lines changed

library/src/components/timetable/TimeTableRows.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,14 +967,15 @@ function TableCell<G extends TimeTableGroup, I extends TimeSlotBooking>({
967967
)}
968968
{isFocused && (
969969
<div
970+
data-test={`${groupItemRows?.length}_${rowNumber}`}
970971
className={twJoin(
971972
"absolute inset-0 z-1",
972973
isFocused &&
973974
"border-l-3 border-r-3 border-brand-bold border-solid",
974975
rowNumber === 0 &&
975976
timeSlotSelectionDisabled &&
976977
"border-t-3",
977-
rowNumber === (groupItemRows?.length ?? 0) - 1 &&
978+
rowNumber === (groupItemRows?.length || 1) - 1 &&
978979
"border-b-3",
979980
)}
980981
/>
@@ -1042,7 +1043,7 @@ function PlaceholderTableCell<
10421043
}
10431044

10441045
const timeSlotSelectedIndex = selectedTimeSlots
1045-
? selectedTimeSlots?.findIndex((it) => it === timeSlotNumber)
1046+
? selectedTimeSlots?.indexOf(timeSlotNumber)
10461047
: -1
10471048

10481049
const isFirstOfSelection =
@@ -1166,7 +1167,8 @@ function PlaceholderTableCell<
11661167
<div
11671168
className={twJoin(
11681169
"absolute inset-0 z-1",
1169-
isFocused && "border-3 border-brand-bold border-solid",
1170+
isFocused &&
1171+
"border-l-3 border-r-3 border-t-3 border-brand-bold border-solid",
11701172
)}
11711173
/>
11721174
)}

0 commit comments

Comments
 (0)