esnet / esnet/react-network-diagrams

pathColorMap prop not working with keys that are not camelCased

Open
#42 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.