nismod / irv-jamaica

Jamaica Systemic Resilience Assessment Tool
MIT License
0 stars 0 forks source link

refactor(frontend): generalise TooltipContent #44

Closed eatyourgreens closed 1 week ago

eatyourgreens commented 1 week ago

Generalise TooltipContent with a useTooltipLayers hook, which supplies a map of layer IDs to their respective tooltip components and layer state. This should make it easier to add new layers, by extending the map.

Refactor interaction groups as a dynamic map. Add/remove new interactive layers by adding entries to/removing entries from src/config/interaction-groups.