esnet / esnet/react-network-diagrams
pathColorMap prop not working with keys that are not camelCased
Open
- Dominant language
- JavaScript
- Stars
- 206
- Forks
- 35
- PR merge metrics
- No merged PRs in 30d
Description
It seems if the path name values are not camelCased, it doesn't seem to render the corresponding color value.
const pathColorMap = {
Ate23 Z1: "#00008b"
Kile23 Zsd1: "#00008b"
Byte23 : "#00008b"
Ate24 21: "#00008b"
}
or
const pathColorMap = {
"Ate23 Z1": "#00008b"
"Kile23 Zsd1": "#00008b"
"Byte23" : "#00008b"
"Ate24 21": "#00008b"
}
The component does not seem to support either of these formats
Contributor guide
Assessment
This issue has not been assessed yet.