From 379ce75d91de8b26569174bf03a637e15422a07a Mon Sep 17 00:00:00 2001 From: McFly78 <47537385+McFly78@users.noreply.github.com> Date: Tue, 21 Jul 2020 17:19:16 +0200 Subject: [PATCH 1/3] Update sectioned-multi-select.js --- lib/sectioned-multi-select.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/sectioned-multi-select.js b/lib/sectioned-multi-select.js index c07b4a3..d57da4c 100644 --- a/lib/sectioned-multi-select.js +++ b/lib/sectioned-multi-select.js @@ -150,6 +150,13 @@ class SectionedMultiSelect extends PureComponent { searchIconComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]), selectedIconComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]), unselectedIconComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]), + + // NM ADD + selectedParentIconComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]), + unselectedParentIconComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]), + // NM ADD END + + dropDownToggleIconUpComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]), dropDownToggleIconDownComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]), chipRemoveIconComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]), From 512faf45154c321e01e1e38be03b19f17bf040ba Mon Sep 17 00:00:00 2001 From: McFly78 <47537385+McFly78@users.noreply.github.com> Date: Tue, 21 Jul 2020 17:20:53 +0200 Subject: [PATCH 2/3] Update RowItem.js --- lib/components/RowItem.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/components/RowItem.js b/lib/components/RowItem.js index 686d9b1..e7a9cb9 100644 --- a/lib/components/RowItem.js +++ b/lib/components/RowItem.js @@ -171,13 +171,13 @@ class RowItem extends Component { _renderSelectedIcon = () => { const { item, - selectedIconComponent, + selectedParentIconComponent, mergedColors, - unselectedIconComponent, + unselectedParentIconComponent, iconRenderer: Icon, } = this.props return this._itemSelected(item) - ? callIfFunction(selectedIconComponent) || ( + ? callIfFunction(selectedParentIconComponent) || ( ) - : callIfFunction(unselectedIconComponent) || null + : callIfFunction(unselectedParentIconComponent) || null } render() { From 1c50425e73aa141d210039b4a8e91d24a0ec22a5 Mon Sep 17 00:00:00 2001 From: McFly78 <47537385+McFly78@users.noreply.github.com> Date: Tue, 21 Jul 2020 17:48:16 +0200 Subject: [PATCH 3/3] Update RowItem.js --- lib/components/RowItem.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/components/RowItem.js b/lib/components/RowItem.js index e7a9cb9..d6eb932 100644 --- a/lib/components/RowItem.js +++ b/lib/components/RowItem.js @@ -171,13 +171,13 @@ class RowItem extends Component { _renderSelectedIcon = () => { const { item, - selectedParentIconComponent, + selectedParentIconComponent, // NM mergedColors, - unselectedParentIconComponent, + unselectedParentIconComponent, // NM iconRenderer: Icon, } = this.props return this._itemSelected(item) - ? callIfFunction(selectedParentIconComponent) || ( + ? callIfFunction(selectedParentIconComponent) || ( // NM ) - : callIfFunction(unselectedParentIconComponent) || null + : callIfFunction(unselectedParentIconComponent) || null // NM } render() {