Skip to content

Commit

Permalink
adding tooltip for searchneu button
Browse files Browse the repository at this point in the history
  • Loading branch information
KobeZ123 committed Oct 30, 2024
1 parent 3438e3c commit c106938
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions packages/frontend/components/AddCourseModal/SearchResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,29 @@ export const SearchResult: React.FC<SearchResultProps> = ({
</Text>
</Box>
<Box ml="auto" mr="sm"></Box>
<a
href={getSearchLink(year ?? 2022, season, course)}
target="_blank"
rel="noreferrer"
<GraduateToolTip
label={`Search for ${getCourseDisplayString(course)} on SearchNEU`}
>
<IconButton
aria-label="Add class"
icon={<QuestionOutlineIcon />}
color="primary.blue.light.main"
border={0}
colorScheme="primary.blue.light.main"
isRound
size="sm"
pr={1}
isLoading={isSelectingAnotherCourse}
isDisabled={isResultAlreadyAdded || isResultAlreadySelected}
alignSelf="center"
/>
</a>
<a
href={getSearchLink(year ?? 2022, season, course)}
target="_blank"
rel="noreferrer"
>
<IconButton
aria-label="Search course information"
icon={<QuestionOutlineIcon />}
color="primary.blue.light.main"
border={0}
colorScheme="primary.blue.light.main"
isRound
size="md"
pr={1}
isLoading={isSelectingAnotherCourse}
isDisabled={isResultAlreadyAdded || isResultAlreadySelected}
alignSelf="center"
/>
</a>
</GraduateToolTip>
<NUPathLabel
nuPaths={course.nupaths ? course.nupaths : []}
filteredPaths={filteredPaths}
Expand Down

0 comments on commit c106938

Please sign in to comment.