diff --git a/src/components/TreeViewFinder/TreeViewFinder.js b/src/components/TreeViewFinder/TreeViewFinder.js index f496c3de..77e2648c 100644 --- a/src/components/TreeViewFinder/TreeViewFinder.js +++ b/src/components/TreeViewFinder/TreeViewFinder.js @@ -96,6 +96,7 @@ const composeClasses = makeComposeClasses(generateTreeViewFinderClass); * @param {String} [validationButtonText=default text] - Customized Validation Button text (default: Add N Elements) * @param {Boolean} [onlyLeaves=true] - Allow/Forbid selection only on leaves * @param {Boolean} [multiselect=false] - Allow/Forbid multiselection on Tree + * @param {Boolean} [withCustomColor=true] - Display a custom color on the cancel button */ const TreeViewFinder = (props) => { const intl = useIntl(); @@ -114,6 +115,7 @@ const TreeViewFinder = (props) => { multiselect, sortMethod, className, + withCustomColor = true, } = props; const [mapPrintedNodes, setMapPrintedNodes] = useState({}); @@ -344,17 +346,17 @@ const TreeViewFinder = (props) => { );