From 5d76c75dc88d381aab8cc0ad7d125973d5a1c847 Mon Sep 17 00:00:00 2001 From: akonshina Date: Wed, 12 Jul 2023 10:23:13 +0200 Subject: [PATCH 01/23] add resource --- src/components/TreeMenu/TreeMenuItem.js | 50 ++++++++++++++----------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/src/components/TreeMenu/TreeMenuItem.js b/src/components/TreeMenu/TreeMenuItem.js index c989386b5..84dc93fe7 100644 --- a/src/components/TreeMenu/TreeMenuItem.js +++ b/src/components/TreeMenu/TreeMenuItem.js @@ -7,9 +7,10 @@ const TreeMenuItem = ({ level = 0, hasNodes, isOpen, label, searchTerm, openNodes, toggleNode, matchSearch, focused, - type, isDisabled, ...props + type, isDisabled, resource, ...props }) => { const sessionExpired = useSelector(state => state.auth?.sessionExpired); + const resources = useSelector(state => state.auth?.resources); const paddingLeft = 1.25 * level + 0.5; const selected = focused ? " selected" : ""; const disabled = (isDisabled || sessionExpired) ? " disabled" : ""; @@ -24,28 +25,33 @@ const TreeMenuItem = ({ props.onClick && props.onClick(); } + console.log(label, isDisabled, resources, resources?.indexOf(resource) == -1, resources.indexOf("authz:superuser") == -1) + return ( -
  • {handleClick(e)}} - > - {(type == "folder") && ( -
    { - e.stopPropagation(); - hasNodes && toggleNode && toggleNode(); - }} - > - -
    - )} - {label} -
  • + isDisabled && (resources?.indexOf(resource) == -1) && (resources?.indexOf("authz:superuser") == -1) ? + null + : +
  • {handleClick(e)}} + > + {(type == "folder") && ( +
    { + e.stopPropagation(); + hasNodes && toggleNode && toggleNode(); + }} + > + +
    + )} + {label} +
  • ) }; From 7a002468f913172d529d652ba1e8c5af538cad1a Mon Sep 17 00:00:00 2001 From: akonshina Date: Wed, 12 Jul 2023 11:21:56 +0200 Subject: [PATCH 02/23] remove console.log --- src/components/TreeMenu/TreeMenuItem.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/TreeMenu/TreeMenuItem.js b/src/components/TreeMenu/TreeMenuItem.js index 84dc93fe7..87e58540f 100644 --- a/src/components/TreeMenu/TreeMenuItem.js +++ b/src/components/TreeMenu/TreeMenuItem.js @@ -25,7 +25,6 @@ const TreeMenuItem = ({ props.onClick && props.onClick(); } - console.log(label, isDisabled, resources, resources?.indexOf(resource) == -1, resources.indexOf("authz:superuser") == -1) return ( isDisabled && (resources?.indexOf(resource) == -1) && (resources?.indexOf("authz:superuser") == -1) ? From a32e013321eae7a377229af6ec7359a8ad647a0c Mon Sep 17 00:00:00 2001 From: akonshina Date: Wed, 12 Jul 2023 11:36:55 +0200 Subject: [PATCH 03/23] update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14635c705..98f310e62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -86,6 +86,8 @@ - Add styles for primary dropdown-toggle (INDIGO Sprint 230623, [!428](https://github.com/TeskaLabs/asab-webui/pull/428)) +- Add a condition that will allow users with the right resource to see hidden tree-menu-items (INDIGO Sprint 230623, [!437](https://github.com/TeskaLabs/asab-webui/pull/437)) + ### Bugfix - Bug fix for HelpComponent, not display a Helpcomoponent when the user changing the page (INDIGO Sprint 230317, [!401](https://github.com/TeskaLabs/asab-webui/pull/401)) From 740a46f643727bc08517f788740f196a99bc33a3 Mon Sep 17 00:00:00 2001 From: akonshina Date: Thu, 13 Jul 2023 12:14:47 +0200 Subject: [PATCH 04/23] remove unused ? condition --- src/components/TreeMenu/TreeMenuItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TreeMenu/TreeMenuItem.js b/src/components/TreeMenu/TreeMenuItem.js index 87e58540f..e75dd23a5 100644 --- a/src/components/TreeMenu/TreeMenuItem.js +++ b/src/components/TreeMenu/TreeMenuItem.js @@ -27,7 +27,7 @@ const TreeMenuItem = ({ return ( - isDisabled && (resources?.indexOf(resource) == -1) && (resources?.indexOf("authz:superuser") == -1) ? + isDisabled && (resources.indexOf(resource) == -1) && (resources.indexOf("authz:superuser") == -1) ? null :
  • Date: Mon, 17 Jul 2023 06:54:06 +0200 Subject: [PATCH 05/23] remove unused imports --- doc/tree-menu.md | 0 .../ConfigModule/ConfigContainers/TreeViewComponent.js | 7 +------ 2 files changed, 1 insertion(+), 6 deletions(-) create mode 100644 doc/tree-menu.md diff --git a/doc/tree-menu.md b/doc/tree-menu.md new file mode 100644 index 000000000..e69de29bb diff --git a/src/modules/maintenance/ConfigModule/ConfigContainers/TreeViewComponent.js b/src/modules/maintenance/ConfigModule/ConfigContainers/TreeViewComponent.js index 2985d4e52..f6afdf5bc 100644 --- a/src/modules/maintenance/ConfigModule/ConfigContainers/TreeViewComponent.js +++ b/src/modules/maintenance/ConfigModule/ConfigContainers/TreeViewComponent.js @@ -5,12 +5,7 @@ import { useTranslation } from 'react-i18next'; import { TreeMenu } from 'asab-webui'; import { types } from './actions/actions'; -import { - Input, - InputGroup, InputGroupText, - ButtonDropdown, DropdownToggle, - DropdownMenu, DropdownItem -} from "reactstrap"; +import { DropdownMenu, DropdownItem } from "reactstrap"; export function TreeViewComponent(props) { From 0d3e581e439606375ef5d00fb1dc94ccd874b17b Mon Sep 17 00:00:00 2001 From: akonshina Date: Mon, 17 Jul 2023 08:01:12 +0200 Subject: [PATCH 06/23] create docs --- doc/tree-menu.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/doc/tree-menu.md b/doc/tree-menu.md index e69de29bb..c45bbae84 100644 --- a/doc/tree-menu.md +++ b/doc/tree-menu.md @@ -0,0 +1,44 @@ +# ASAB WebUI TreeMenu component + +This component is based on the library [react-simple-tree-menu](https://github.com/iannbing/react-simple-tree-menu). + +Displays menu items in a clear structure. + +## Example code + +```javascript +import { TreeMenu } from 'asab-webui'; +... + + + +``` + + +## Props: + +#### Required: + + - `data`: object or array, data in a special structure. The detailed data structure is described in the library documentation react-simple-tree-menu. + + - `hasSearch`: boolean, changes the styles for the search input and affects the display of placeholder + + - `hasNodes`: boolean, if a `TreeNode` is the last node of its branch + + - `resource`: string, resource granting display disabled tree-menu-item elements + + +#### Optional: + - `searchOptions`: object, conducts placeholder and the dropdown component From 0136301f6a986d8715dde2a4e7495753b1b0e857 Mon Sep 17 00:00:00 2001 From: akonshina Date: Mon, 17 Jul 2023 08:04:30 +0200 Subject: [PATCH 07/23] add new line --- doc/tree-menu.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/tree-menu.md b/doc/tree-menu.md index c45bbae84..03bf772ba 100644 --- a/doc/tree-menu.md +++ b/doc/tree-menu.md @@ -42,3 +42,4 @@ import { TreeMenu } from 'asab-webui'; #### Optional: - `searchOptions`: object, conducts placeholder and the dropdown component + From a86aaf632a984ff868273fb3d748af32ec89a85a Mon Sep 17 00:00:00 2001 From: akonshina Date: Mon, 17 Jul 2023 08:07:28 +0200 Subject: [PATCH 08/23] move hassearch from props --- src/components/TreeMenu/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/TreeMenu/index.js b/src/components/TreeMenu/index.js index c19bdb659..977749c07 100644 --- a/src/components/TreeMenu/index.js +++ b/src/components/TreeMenu/index.js @@ -9,7 +9,7 @@ import SimpleTreeMenu from 'react-simple-tree-menu'; import TreeMenuItem from "./TreeMenuItem"; const TreeMenu = ({ - data, searchOptions, ...props + data, searchOptions, hasSearch, ...props }) => { const [isDropdownMenuOpen, setDropdownMenu] = useState(false); @@ -22,20 +22,20 @@ const TreeMenu = ({ {({ search, items }) => ( <> - + {searchOptions?.dropdown && ( setDropdownMenu(prev => !prev)} > - {searchOptions.dropdown.title} + {searchOptions.dropdown.title} {searchOptions.dropdown.children} )} - {props.hasSearch && + {hasSearch && search(e.target.value)} placeholder={searchOptions?.placeholder} From 3d79effac1f89ae22e3abb41ab0123b0551b2929 Mon Sep 17 00:00:00 2001 From: akonshina Date: Tue, 18 Jul 2023 07:46:15 +0200 Subject: [PATCH 09/23] add link to more optional params --- doc/tree-menu.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/tree-menu.md b/doc/tree-menu.md index 03bf772ba..a7bb87306 100644 --- a/doc/tree-menu.md +++ b/doc/tree-menu.md @@ -41,5 +41,7 @@ import { TreeMenu } from 'asab-webui'; #### Optional: +More additional parameters can be found [here](https://github.com/iannbing/react-simple-tree-menu#api). + - `searchOptions`: object, conducts placeholder and the dropdown component From 4031a15e7b51f3945dc1920040c37fa192184ef7 Mon Sep 17 00:00:00 2001 From: akonshina Date: Tue, 18 Jul 2023 07:52:18 +0200 Subject: [PATCH 10/23] return changes with props.hassearch --- src/components/TreeMenu/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/TreeMenu/index.js b/src/components/TreeMenu/index.js index 977749c07..c19bdb659 100644 --- a/src/components/TreeMenu/index.js +++ b/src/components/TreeMenu/index.js @@ -9,7 +9,7 @@ import SimpleTreeMenu from 'react-simple-tree-menu'; import TreeMenuItem from "./TreeMenuItem"; const TreeMenu = ({ - data, searchOptions, hasSearch, ...props + data, searchOptions, ...props }) => { const [isDropdownMenuOpen, setDropdownMenu] = useState(false); @@ -22,20 +22,20 @@ const TreeMenu = ({ {({ search, items }) => ( <> - + {searchOptions?.dropdown && ( setDropdownMenu(prev => !prev)} > - {searchOptions.dropdown.title} + {searchOptions.dropdown.title} {searchOptions.dropdown.children} )} - {hasSearch && + {props.hasSearch && search(e.target.value)} placeholder={searchOptions?.placeholder} From 03da9bebe168d1fe51af9c6db987749a0802f00f Mon Sep 17 00:00:00 2001 From: akonshina Date: Tue, 18 Jul 2023 07:53:27 +0200 Subject: [PATCH 11/23] add link to more props, remove unused docs part --- doc/tree-menu.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/tree-menu.md b/doc/tree-menu.md index a7bb87306..267a864a2 100644 --- a/doc/tree-menu.md +++ b/doc/tree-menu.md @@ -28,20 +28,18 @@ import { TreeMenu } from 'asab-webui'; ## Props: +More parameters can be found [here](https://github.com/iannbing/react-simple-tree-menu#api). #### Required: - `data`: object or array, data in a special structure. The detailed data structure is described in the library documentation react-simple-tree-menu. - - `hasSearch`: boolean, changes the styles for the search input and affects the display of placeholder - - - `hasNodes`: boolean, if a `TreeNode` is the last node of its branch + - `hasSearch`: boolean, render the `Search` for the `TreeMenu` - `resource`: string, resource granting display disabled tree-menu-item elements #### Optional: -More additional parameters can be found [here](https://github.com/iannbing/react-simple-tree-menu#api). - `searchOptions`: object, conducts placeholder and the dropdown component From 5a7dc223d906d4acced55a9bc32ce72eeca393eb Mon Sep 17 00:00:00 2001 From: akonshina Date: Tue, 18 Jul 2023 08:10:07 +0200 Subject: [PATCH 12/23] add basic tree-menu props --- doc/tree-menu.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/tree-menu.md b/doc/tree-menu.md index 267a864a2..9ec99cffb 100644 --- a/doc/tree-menu.md +++ b/doc/tree-menu.md @@ -34,8 +34,6 @@ More parameters can be found [here](https://github.com/iannbing/react-simple-tre - `data`: object or array, data in a special structure. The detailed data structure is described in the library documentation react-simple-tree-menu. - - `hasSearch`: boolean, render the `Search` for the `TreeMenu` - - `resource`: string, resource granting display disabled tree-menu-item elements From 501fa52cd0a44078cb4c518d5a9e945b68a7520b Mon Sep 17 00:00:00 2001 From: akonshina Date: Tue, 18 Jul 2023 11:53:21 +0200 Subject: [PATCH 13/23] replace resource to optional params --- doc/tree-menu.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tree-menu.md b/doc/tree-menu.md index 9ec99cffb..55323ea04 100644 --- a/doc/tree-menu.md +++ b/doc/tree-menu.md @@ -34,10 +34,10 @@ More parameters can be found [here](https://github.com/iannbing/react-simple-tre - `data`: object or array, data in a special structure. The detailed data structure is described in the library documentation react-simple-tree-menu. - - `resource`: string, resource granting display disabled tree-menu-item elements - #### Optional: - `searchOptions`: object, conducts placeholder and the dropdown component + - `resource`: string, resource granting display disabled tree-menu-item elements + From 7acfbde897793b3c79bdf30a4ee3c4e20a675770 Mon Sep 17 00:00:00 2001 From: akonshina Date: Thu, 20 Jul 2023 07:51:57 +0200 Subject: [PATCH 14/23] add resources like a prop --- src/components/TreeMenu/TreeMenuItem.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/TreeMenu/TreeMenuItem.js b/src/components/TreeMenu/TreeMenuItem.js index e75dd23a5..fc6643ed1 100644 --- a/src/components/TreeMenu/TreeMenuItem.js +++ b/src/components/TreeMenu/TreeMenuItem.js @@ -7,14 +7,16 @@ const TreeMenuItem = ({ level = 0, hasNodes, isOpen, label, searchTerm, openNodes, toggleNode, matchSearch, focused, - type, isDisabled, resource, ...props + type, isDisabled, resource, resources, ...props }) => { const sessionExpired = useSelector(state => state.auth?.sessionExpired); - const resources = useSelector(state => state.auth?.resources); + // const resources = useSelector(state => state.auth?.resources); const paddingLeft = 1.25 * level + 0.5; const selected = focused ? " selected" : ""; const disabled = (isDisabled || sessionExpired) ? " disabled" : ""; + // const showDisabledItems = isDisabled && resources && resource && + // Method to manage clicks on whole rows of the Tree item const handleClick = (e) => { // If type is folder and node is closed, make whole line clickable for toggling nodes @@ -27,7 +29,7 @@ const TreeMenuItem = ({ return ( - isDisabled && (resources.indexOf(resource) == -1) && (resources.indexOf("authz:superuser") == -1) ? + isDisabled && resources && (resources.indexOf(resource) == -1) && (resources.indexOf("authz:superuser") == -1) ? null :
  • Date: Thu, 20 Jul 2023 08:55:22 +0200 Subject: [PATCH 15/23] send resources to the tree menu --- src/components/TreeMenu/TreeMenuItem.js | 1 - src/components/TreeMenu/index.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TreeMenu/TreeMenuItem.js b/src/components/TreeMenu/TreeMenuItem.js index fc6643ed1..aaa623fa9 100644 --- a/src/components/TreeMenu/TreeMenuItem.js +++ b/src/components/TreeMenu/TreeMenuItem.js @@ -14,7 +14,6 @@ const TreeMenuItem = ({ const paddingLeft = 1.25 * level + 0.5; const selected = focused ? " selected" : ""; const disabled = (isDisabled || sessionExpired) ? " disabled" : ""; - // const showDisabledItems = isDisabled && resources && resource && // Method to manage clicks on whole rows of the Tree item diff --git a/src/components/TreeMenu/index.js b/src/components/TreeMenu/index.js index c19bdb659..e8453823a 100644 --- a/src/components/TreeMenu/index.js +++ b/src/components/TreeMenu/index.js @@ -9,7 +9,7 @@ import SimpleTreeMenu from 'react-simple-tree-menu'; import TreeMenuItem from "./TreeMenuItem"; const TreeMenu = ({ - data, searchOptions, ...props + data, searchOptions, resources, ...props }) => { const [isDropdownMenuOpen, setDropdownMenu] = useState(false); @@ -45,6 +45,7 @@ const TreeMenu = ({ {items.map(({ reset, ...props }) => ( ))} From 67662d392e7a09075a0b2a4d86f1217fc03b7bf9 Mon Sep 17 00:00:00 2001 From: akonshina Date: Tue, 25 Jul 2023 07:38:35 +0200 Subject: [PATCH 16/23] update docs --- doc/tree-menu.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/tree-menu.md b/doc/tree-menu.md index 55323ea04..8317d8ab2 100644 --- a/doc/tree-menu.md +++ b/doc/tree-menu.md @@ -12,6 +12,7 @@ import { TreeMenu } from 'asab-webui'; Date: Tue, 25 Jul 2023 07:40:41 +0200 Subject: [PATCH 17/23] refactor props for TreeMenuItem --- src/components/TreeMenu/TreeMenuItem.js | 4 ---- src/components/TreeMenu/index.js | 7 +++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/components/TreeMenu/TreeMenuItem.js b/src/components/TreeMenu/TreeMenuItem.js index aaa623fa9..e9b82e5a5 100644 --- a/src/components/TreeMenu/TreeMenuItem.js +++ b/src/components/TreeMenu/TreeMenuItem.js @@ -10,12 +10,9 @@ const TreeMenuItem = ({ type, isDisabled, resource, resources, ...props }) => { const sessionExpired = useSelector(state => state.auth?.sessionExpired); - // const resources = useSelector(state => state.auth?.resources); const paddingLeft = 1.25 * level + 0.5; const selected = focused ? " selected" : ""; const disabled = (isDisabled || sessionExpired) ? " disabled" : ""; - // const showDisabledItems = isDisabled && resources && resource && - // Method to manage clicks on whole rows of the Tree item const handleClick = (e) => { // If type is folder and node is closed, make whole line clickable for toggling nodes @@ -26,7 +23,6 @@ const TreeMenuItem = ({ props.onClick && props.onClick(); } - return ( isDisabled && resources && (resources.indexOf(resource) == -1) && (resources.indexOf("authz:superuser") == -1) ? null diff --git a/src/components/TreeMenu/index.js b/src/components/TreeMenu/index.js index e8453823a..d55384e48 100644 --- a/src/components/TreeMenu/index.js +++ b/src/components/TreeMenu/index.js @@ -9,10 +9,9 @@ import SimpleTreeMenu from 'react-simple-tree-menu'; import TreeMenuItem from "./TreeMenuItem"; const TreeMenu = ({ - data, searchOptions, resources, ...props + data, searchOptions, ...props }) => { const [isDropdownMenuOpen, setDropdownMenu] = useState(false); - return (
    } - {items.map(({ reset, ...props }) => ( + {items.map(({ reset, ...params }) => ( ))} From 6c521112955525dd9fd864874601928f6464d63d Mon Sep 17 00:00:00 2001 From: akonshina Date: Wed, 26 Jul 2023 12:34:50 +0200 Subject: [PATCH 18/23] fix docs about resources --- doc/tree-menu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tree-menu.md b/doc/tree-menu.md index 8317d8ab2..4fba3e578 100644 --- a/doc/tree-menu.md +++ b/doc/tree-menu.md @@ -42,5 +42,5 @@ More parameters can be found [here](https://github.com/iannbing/react-simple-tre - `resource`: string, resource granting display disabled tree-menu-item elements - - `resources`: array, list of resources that the user has + - `resources`: resources: array, list of resources that the user has assigned From 574e133e93bdb2072897fcd58852045fbff6312f Mon Sep 17 00:00:00 2001 From: akonshina Date: Thu, 27 Jul 2023 15:20:03 +0200 Subject: [PATCH 19/23] pass resorce and resources from props to the Treemenuitem --- src/components/TreeMenu/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/TreeMenu/index.js b/src/components/TreeMenu/index.js index d55384e48..f4233e3c2 100644 --- a/src/components/TreeMenu/index.js +++ b/src/components/TreeMenu/index.js @@ -44,8 +44,9 @@ const TreeMenu = ({ {items.map(({ reset, ...params }) => ( ))} From 9932bdd1d05611844a1aa2863d5a6e2098acaaf3 Mon Sep 17 00:00:00 2001 From: akonshina Date: Fri, 28 Jul 2023 07:39:43 +0200 Subject: [PATCH 20/23] add resource --- src/components/TreeMenu/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/TreeMenu/index.js b/src/components/TreeMenu/index.js index f4233e3c2..b1b3c063f 100644 --- a/src/components/TreeMenu/index.js +++ b/src/components/TreeMenu/index.js @@ -45,6 +45,7 @@ const TreeMenu = ({ From c5ad00398a7eef23e6a631b614e63d9739f604f1 Mon Sep 17 00:00:00 2001 From: akonshina Date: Fri, 28 Jul 2023 07:40:19 +0200 Subject: [PATCH 21/23] remove empty line --- src/components/TreeMenu/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/TreeMenu/index.js b/src/components/TreeMenu/index.js index b1b3c063f..f4233e3c2 100644 --- a/src/components/TreeMenu/index.js +++ b/src/components/TreeMenu/index.js @@ -45,7 +45,6 @@ const TreeMenu = ({ From 36aa35cd044b82de9b31963dad09d8dfcbd4d77e Mon Sep 17 00:00:00 2001 From: akonshina Date: Fri, 28 Jul 2023 07:43:36 +0200 Subject: [PATCH 22/23] update sprint number in the Changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 942dd9122..8708e8ad3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -94,7 +94,7 @@ - Add default value for HelpButton (INDIGO Sprint 230713, [!438](https://github.com/TeskaLabs/asab-webui/pull/438)) -- Add a condition that will allow users with the right resource to see hidden tree-menu-items, add docs for TreeMenu (INDIGO Sprint 230623, [!437](https://github.com/TeskaLabs/asab-webui/pull/437)) +- Add a condition that will allow users with the right resource to see hidden tree-menu-items, add docs for TreeMenu (INDIGO Sprint 230721, [!437](https://github.com/TeskaLabs/asab-webui/pull/437)) ### Bugfix From 570842d5fa90cd0acc6e11015929d4fdf2943ebe Mon Sep 17 00:00:00 2001 From: akonshina Date: Mon, 31 Jul 2023 05:51:28 +0200 Subject: [PATCH 23/23] return changes with ...props --- src/components/TreeMenu/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/TreeMenu/index.js b/src/components/TreeMenu/index.js index f4233e3c2..d55384e48 100644 --- a/src/components/TreeMenu/index.js +++ b/src/components/TreeMenu/index.js @@ -44,9 +44,8 @@ const TreeMenu = ({ {items.map(({ reset, ...params }) => ( ))}