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
This commit is contained in:
2024-03-18 17:15:02 -05:00
committed by GitHub
parent 8027c3d1bf
commit ba2bc60add

View File

@@ -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>