Skip to content

Commit

Permalink
feat: Course Flag Tooltips (#178)
Browse files Browse the repository at this point in the history
* feat: initial attempt at hover text

* feat: fixgin it

* fix: heading to master real quick

* feat: tooltip prop added

* feat: tooltip now reads from the map instead of just label. Think we're done!

* Update Chip.tsx
  • Loading branch information
DereC4 authored Mar 18, 2024
1 parent 8027c3d commit ba2bc60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/views/components/common/Chip/Chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function Chip({ label }: React.PropsWithChildren<Props>): JSX.Element {
style={{
backgroundColor: '#FFD600',
}}
title={Object.keys(flagMap).find(key => flagMap[key] === label)}
>
{label}
</Text>
Expand Down

0 comments on commit ba2bc60

Please sign in to comment.