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:
@@ -31,6 +31,7 @@ export function Chip({ label }: React.PropsWithChildren<Props>): JSX.Element {
|
|||||||
style={{
|
style={{
|
||||||
backgroundColor: '#FFD600',
|
backgroundColor: '#FFD600',
|
||||||
}}
|
}}
|
||||||
|
title={Object.keys(flagMap).find(key => flagMap[key] === label)}
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user