Skip to content

Commit

Permalink
timetable scroll optional
Browse files Browse the repository at this point in the history
  • Loading branch information
bardsley committed Nov 28, 2024
1 parent 049e963 commit 75c9a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/timetable/timetable-client-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function TimetableClientPage(props: ClientClassProps) {
const time = format(fromUnixTime(parseInt(timeSlot.split('-')[0])),"mm") == '00'
? `${format(fromUnixTime(parseInt(timeSlot.split('-')[0])),"haaa")}`
: `${format(fromUnixTime(parseInt(timeSlot.split('-')[0])),"h:mmaaa")}`
const shouldMarkRef = !timeSlotMarked && parseInt(timeSlot.split('-')[0]) > currentTime ? true : false
const shouldMarkRef = scroll && !timeSlotMarked && parseInt(timeSlot.split('-')[0]) > currentTime ? true : false
const timeColor = shouldMarkRef ? "border-t-chillired-500":"border-t-yellow-400"

if(shouldMarkRef) { timeSlotMarked = true}
Expand Down

0 comments on commit 75c9a1f

Please sign in to comment.