Skip to content

Commit

Permalink
Change cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil authored Oct 31, 2024
1 parent bd999e5 commit 267bf13
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/components/SearchResultsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,14 @@ function Row({ course, grades, backupGrades, rmp, setPage }: RowProps) {

return (
<>
<TableRow>
<TableRow
onClick={() => {
if (canOpen) {
setOpen(!open);
}
}} // opens/closes the card by clicking anywhere on the row
className="cursor-pointer"
>
<TableCell className="border-b-0 pb-0" colSpan={6}>
<Typography className="leading-tight text-lg text-gray-600 dark:text-gray-200">
{searchQueryLabel(convertToProfOnly(course))}
Expand All @@ -76,6 +83,7 @@ function Row({ course, grades, backupGrades, rmp, setPage }: RowProps) {
setOpen(!open);
}
}} // opens/closes the card by clicking anywhere on the row
className="cursor-pointer"
>
<TableCell className="border-b-0 pr-0">
<Tooltip
Expand All @@ -91,16 +99,14 @@ function Row({ course, grades, backupGrades, rmp, setPage }: RowProps) {
</IconButton>
</Tooltip>
</TableCell>
<TableCell
className="border-b-0"
onClick={
(e) => e.stopPropagation() // prevents opening/closing the card when clicking on the compare checkbox
}
>
<TableCell className="border-b-0">
<Tooltip title="Open professor profile" placement="top">
<IconButton
aria-label="open professor profile"
onClick={() => setPage(convertToProfOnly(course))}
onClick={(e) => {
e.stopPropagation(); // prevents opening/closing the card when clicking on the profile
setPage(convertToProfOnly(course));
}
>

Check failure on line 110 in src/components/SearchResultsTable.tsx

View workflow job for this annotation

GitHub Actions / Run Typescript check

'}' expected.
<PersonIcon />
</IconButton>
Expand Down

0 comments on commit 267bf13

Please sign in to comment.