feat: show active player

This commit is contained in:
2025-05-21 14:37:07 +02:00
parent a42fff807c
commit 241f6fa7eb
2 changed files with 20 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ const Calendar = ({ playerId }: { playerId: number }) => {
const date = new Date(0);
date.setDate(i + 5);
days.push(
<div key={"weekday_" + i} className="empty">
<div key={"weekday_" + i} className="weekday">
{date.toLocaleString("default", {
weekday: "short",
})}
@@ -111,7 +111,12 @@ const Calendar = ({ playerId }: { playerId: number }) => {
days.push(
<div
key={date.getDate()}
className="day"
className={
"day" +
(date.toDateString() === selectedDate.toDateString()
? " selected-day"
: "")
}
onClick={() => handleDayClick(date)}
>
<div