Skip to content

Commit 81c16a2

Browse files
authored
fix schedule days links (graphql#1767)
1 parent a367355 commit 81c16a2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/app/conf/_components/schedule/schedule-list.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,13 @@ export function ScheduleList({
145145
</div>
146146
) : (
147147
<>
148-
<div className="flex space-x-4">
149-
{Object.keys(sessionsState).map((date, index) => (
148+
<div className="flex space-x-4 mb-4">
149+
{/* Skip registeration prior day for graphql conf 2024 */}
150+
{Object.keys(sessionsState).slice(year === '2024' ? 1 : 0).map((date, index) => (
150151
<a
151-
href={`#day-${index + 1}`}
152+
href={`#day-${(year === '2024' ? 1: 0) + index + 1}`}
152153
key={date}
153-
className={"text-gray-800 text-xs"}
154+
className={"text-gray-800 text-xs hover:underline"}
154155
>
155156
Day {index + 1}
156157
</a>

0 commit comments

Comments
 (0)