Skip to content

Commit

Permalink
Merge branch 'main' into sobenna/unstick-heading
Browse files Browse the repository at this point in the history
  • Loading branch information
xnscdev authored Apr 19, 2024
2 parents c833fb8 + 594b594 commit a5a25ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/judges/schedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ export function JudgeSchedule({ data, cutoffIndex, handleChange }: ScheduleProps
};
});

const handleRowClick = (record: any) => {
handleChange(record.teamId);
};

return (
<Table
locale={{
Expand All @@ -288,6 +292,9 @@ export function JudgeSchedule({ data, cutoffIndex, handleChange }: ScheduleProps
</Table.Summary.Row>
</Table.Summary>
)}
onRow={record => ({
onClick: () => handleRowClick(record),
})}
/>
);
}

0 comments on commit a5a25ea

Please sign in to comment.