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; +}