Skip to content

Commit

Permalink
Make filter tooltip static and more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiramTadepalli committed Nov 16, 2024
1 parent 6111345 commit fc27f59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 26 deletions.
28 changes: 3 additions & 25 deletions src/components/common/Filters/filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,7 @@ const Filters = ({
return (
<div className="flex gap-2">
{/* min letter grade dropdown*/}
<Tooltip
title={
minGPA !== ''
? 'Selected: ' + gpaToLetterGrade(Number(minGPA))
: 'Select Minimum Letter Grade'
}
placement="top"
>
<Tooltip title={'Select Minimum Letter Grade Average'} placement="top">
<FormControl
size="small"
className={`w-full ${
Expand Down Expand Up @@ -139,14 +132,7 @@ const Filters = ({
</Tooltip>

{/* min rating dropdown*/}
<Tooltip
title={
minRating !== ''
? 'Selected: ' + minRating + ' Stars'
: 'Select Minimum Rating'
}
placement="top"
>
<Tooltip title={'Select Minimum Professor Rating'} placement="top">
<FormControl
size="small"
className={`w-full ${
Expand Down Expand Up @@ -193,15 +179,7 @@ const Filters = ({

{/* semester dropdown */}
<Tooltip
title={
chosenSessions.length > 0
? 'Selected: ' +
chosenSessions
.sort((a, b) => compareSemesters(a, b))
.map((term) => displayAcademicSessionName(term))
.join(', ')
: 'Select Semesters'
}
title={'Select Semesters to Include Grades from'}
placement="top"
>
<FormControl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ const SearchResultsTable = ({
</TableCell>
<TableCell>
<Tooltip
title="Average GPA Across Course Sections"
title="Average Letter Grade Across Course Sections"
placement="top"
>
<div>
Expand Down

0 comments on commit fc27f59

Please sign in to comment.