From ba2bc60add2b87ccd4e9894c454d7a8d8382f0dd Mon Sep 17 00:00:00 2001 From: Derek Chen Date: Mon, 18 Mar 2024 17:15:02 -0500 Subject: [PATCH] feat: Course Flag Tooltips (#178) * 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 --- src/views/components/common/Chip/Chip.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/components/common/Chip/Chip.tsx b/src/views/components/common/Chip/Chip.tsx index 1357250c..8e0d1805 100644 --- a/src/views/components/common/Chip/Chip.tsx +++ b/src/views/components/common/Chip/Chip.tsx @@ -31,6 +31,7 @@ export function Chip({ label }: React.PropsWithChildren): JSX.Element { style={{ backgroundColor: '#FFD600', }} + title={Object.keys(flagMap).find(key => flagMap[key] === label)} > {label}