From 0a685a2f5a9dcb159732c8366a250d0ac606704b Mon Sep 17 00:00:00 2001 From: mdshamoon Date: Fri, 8 Mar 2024 15:57:29 +0530 Subject: [PATCH] added side menus --- .../UI/Layout/Navigation/SideMenus/SideMenus.tsx | 8 ++++---- .../SettingList/Organization/Organization.module.css | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/UI/Layout/Navigation/SideMenus/SideMenus.tsx b/src/components/UI/Layout/Navigation/SideMenus/SideMenus.tsx index e706ad0b3..6cdba3e82 100644 --- a/src/components/UI/Layout/Navigation/SideMenus/SideMenus.tsx +++ b/src/components/UI/Layout/Navigation/SideMenus/SideMenus.tsx @@ -23,8 +23,8 @@ export interface SideMenusProps { opened: boolean; } -const AddAccordian = ({ defaultExpanded, summary, details, opened }: any) => ( - +const AddAccordian = ({ summary, details, opened, expanded = false }: any) => ( + { selected={menu.children ? false : isSelected} className={opened ? styles.OpenItem : styles.ClosedItem} onClick={() => { - setParentMenu(menu.path); + setParentMenu(menu.path === parentMenu ? undefined : menu.path); }} classes={{ root: styles.IconItem, @@ -221,8 +221,8 @@ const SideMenus = ({ opened }: SideMenusProps) => { ) : ( diff --git a/src/containers/SettingList/Organization/Organization.module.css b/src/containers/SettingList/Organization/Organization.module.css index e69de29bb..10f11360e 100644 --- a/src/containers/SettingList/Organization/Organization.module.css +++ b/src/containers/SettingList/Organization/Organization.module.css @@ -0,0 +1,3 @@ +.Checkbox { + margin-top: 14px; +}