Polygon checkbox working active and inactive; need to hook up action to filter through events

This commit is contained in:
efarooqui
2021-05-21 14:48:40 -07:00
parent 7156639ec3
commit 8206edb310
5 changed files with 36 additions and 16 deletions

View File

@@ -7,8 +7,11 @@ const PanelTree = ({ data, activeValues, onSelect, defaultCheckboxColor }) => {
{data.map((val) => {
const isActive = activeValues.includes(val.title);
const baseStyles = {
background: isActive ? defaultCheckboxColor : "none",
border: `1px solid ${defaultCheckboxColor}`,
checkboxStyles: {
background: isActive ? defaultCheckboxColor : "none",
border: `1px solid ${defaultCheckboxColor}`,
},
containerStyles: {},
};
return (
<li