From 1aaff48e973c13a5cf735b94a1179b1d52a1a47d Mon Sep 17 00:00:00 2001 From: carolhe134 <89999830+carolhe134@users.noreply.github.com> Date: Fri, 5 Apr 2024 16:22:01 -0500 Subject: [PATCH] Added table column to judge dashboard (#463) --- components/judges/schedule.tsx | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/components/judges/schedule.tsx b/components/judges/schedule.tsx index 86f0056a..3391f3d1 100644 --- a/components/judges/schedule.tsx +++ b/components/judges/schedule.tsx @@ -89,7 +89,7 @@ export default function OrganizerSchedule(props: ScheduleProps) { .filter(x => x.team !== null && x.team.name !== null) .find(x => x.team.name === teamName)?.team.locationNum; return { - title: (teamName as string) + ' (Table ' + locationNum + ')', + title: teamName as string, dataIndex: teamName as string, key: teamName as string, render: TableCell, @@ -194,16 +194,21 @@ export function JudgeSchedule({ data, cutoffIndex, handleChange }: ScheduleProps width: '10%', render: (date: string) => DateTime.fromISO(date).toLocaleString(DateTime.TIME_SIMPLE), }, + { + title: 'Table', + dataIndex: 'table', + key: 'table', + width: '10%', + render: (locationNum: number) => locationNum, + }, { title: 'Project', dataIndex: 'project', key: 'project', - width: '40%', - render: ({ name, link, locationNum }: { name: string; link: URL; locationNum: number }) => ( + width: '30%', + render: ({ name, link }: { name: string; link: URL }) => ( <> -