Skip to content

Commit 0abeb93

Browse files
committed
just another small color fit for the time table
1 parent d9ff716 commit 0abeb93

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

library/src/components/timetable/TimeLineTableSimplified.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { PlaceHolderItem } from "./PlaceholderItem"
2929

3030
interface TimeLineTableSimplifiedProps<
3131
G extends TimeTableGroup,
32-
I extends TimeSlotBooking
32+
I extends TimeSlotBooking,
3333
> {
3434
/* Entries define the groups, and the items in the groups */
3535
entries: TimeTableEntry<G, I>[]
@@ -51,7 +51,7 @@ interface TimeLineTableSimplifiedProps<
5151
*/
5252
export default function TimeLineTableSimplified<
5353
G extends TimeTableGroup,
54-
I extends TimeSlotBooking
54+
I extends TimeSlotBooking,
5555
>({
5656
entries,
5757
onGroupClick,
@@ -118,7 +118,7 @@ function GroupHeaderTableCell<G extends TimeTableGroup>({
118118
backgroundColor:
119119
groupNumber % 2 === 0
120120
? token("elevation.surface")
121-
: token("elevation.surface.pressed"),
121+
: token("elevation.surface.hovered"),
122122
}}
123123
>
124124
{renderGroup ? renderGroup({ group }) : <Group group={group} />}
@@ -162,7 +162,7 @@ function TableCell({
162162
: token("color.background.neutral.pressed")
163163
: groupNumber % 2 === 0
164164
? token("elevation.surface")
165-
: token("elevation.surface.overlay"),
165+
: token("elevation.surface.hovered"),
166166
cursor:
167167
isWeekendDay && disableWeekendInteractions
168168
? "not-allowed"
@@ -207,7 +207,7 @@ function PlaceholderTableCell<G extends TimeTableGroup>({
207207
const timeSlotSelectedIndex =
208208
selectedTimeSlots && selectedTimeSlots.group === group
209209
? selectedTimeSlots.timeSlots.findIndex(
210-
(it) => it === timeSlotNumber
210+
(it) => it === timeSlotNumber,
211211
)
212212
: -1
213213
const isWeekendDay = timeSlot.day() === 0 || timeSlot.day() === 6
@@ -242,7 +242,7 @@ function PlaceholderTableCell<G extends TimeTableGroup>({
242242
: token("color.background.neutral.pressed")
243243
: groupNumber % 2 === 0
244244
? token("elevation.surface")
245-
: token("elevation.surface.overlay"),
245+
: token("elevation.surface.hovered"),
246246
verticalAlign: "top",
247247
cursor: "pointer",
248248
}
@@ -308,7 +308,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
308308
groupRowMax={rowCount} // group header spans all rows of the group
309309
renderGroup={renderGroup}
310310
onGroupClick={onGroupHeaderClick}
311-
/>
311+
/>,
312312
)
313313

314314
// and interaction row
@@ -323,7 +323,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
323323
group={group}
324324
groupNumber={groupNumber}
325325
timeSlotNumber={timeSlotNumber}
326-
/>
326+
/>,
327327
)
328328
}
329329
trs.push(
@@ -334,7 +334,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
334334
}}
335335
>
336336
{tds}
337-
</tr>
337+
</tr>,
338338
)
339339

340340
// and the normal rows
@@ -356,7 +356,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
356356
timeSlotNumber++
357357
) {
358358
const itemsOfTimeSlot = itemsWithStart.filter(
359-
(it) => it && it.startSlot === timeSlotNumber
359+
(it) => it && it.startSlot === timeSlotNumber,
360360
) as { item: I; startSlot: number; endSlot: number }[]
361361
const itemsWithRenderProps = itemsOfTimeSlot
362362
.map((it) => {
@@ -365,7 +365,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
365365
it.startSlot,
366366
it.endSlot,
367367
slotsArray,
368-
timeSteps
368+
timeSteps,
369369
)
370370
return { left, width, item: it.item }
371371
})
@@ -420,7 +420,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
420420
>
421421
{itemsToRender}
422422
</div>
423-
</TableCell>
423+
</TableCell>,
424424
)
425425
}
426426

@@ -432,7 +432,7 @@ function GroupRows<G extends TimeTableGroup, I extends TimeSlotBooking>({
432432
}}
433433
>
434434
{tds}
435-
</tr>
435+
</tr>,
436436
)
437437
}
438438
return trs
@@ -462,7 +462,7 @@ let mouseLeftTS: number | null = null
462462
*/
463463
function useMouseHandlers<G extends TimeTableGroup>(
464464
timeSlotNumber: number,
465-
group: G
465+
group: G,
466466
) {
467467
const { selectedTimeSlots, toggleTimeSlotCB } = useSelectedTimeSlots()
468468
const { multiSelectionMode, setMultiSelectionMode } =
@@ -654,7 +654,7 @@ function getLeftAndWidth(
654654
startSlot: number,
655655
endSlot: number,
656656
slotsArray: Dayjs[],
657-
timeSteps: number
657+
timeSteps: number,
658658
) {
659659
let left = item.startDate.diff(slotsArray[startSlot], "minute") / timeSteps
660660
if (left < 0) {
@@ -691,7 +691,7 @@ function getLeftAndWidth(
691691
startSlot,
692692
endSlot,
693693
slotsArray,
694-
timeSteps
694+
timeSteps,
695695
)
696696
}
697697

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)