From b3e0902d1141db84e5e887151584112d2478e4b4 Mon Sep 17 00:00:00 2001 From: TOURI ANIS Date: Wed, 8 Nov 2023 10:51:27 +0100 Subject: [PATCH] change treeView appearance --- src/components/TreeViewFinder/TreeViewFinder.js | 7 +++++-- src/components/react-hook-form/utils/submit-button.js | 8 ++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) 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) => { );