Skip to content

Commit 556e101

Browse files
author
Simon Bjerre
committed
added online indicator
1 parent 4fdb1f8 commit 556e101

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/BookingsComponent.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,13 @@ const ScheduleTable: React.FC = () => {
144144
<div>
145145
{Object.keys(groupedFilteredSessions).map((date: string) => (
146146
<div key={date}>
147-
<h2 className="bg-[#d5dfdf] w-full font-bold text-black p-2 text-center">{getDayName(date)}</h2>
147+
<h2 className="bg-[#d5dfdf] dark:bg-[#1b3546] w-full font-bold text-black dark:text-white p-2 text-center">{getDayName(date)}</h2>
148148
<table className="w-full px-2">
149149
<tbody>
150150
{groupedFilteredSessions[date].map((session: any) => (
151151
<tr key={session.callsign} className="h-6 even:bg-gray-50 odd:bg-white dark:even:bg-[#0f2a38] dark:odd:bg-black">
152-
<td>{session.callsign}</td>
152+
{session.type === 'Booking' ? <td>{session.callsign}</td> : <td>🟢 {session.callsign}</td>}
153+
153154
<td>{convertZulu(session.time_start)}</td>
154155
<td>{session.time_end ? convertZulu(session.time_end) : ""}</td>
155156
</tr>

0 commit comments

Comments
 (0)