diff --git a/src/components/UI/Layout/Navigation/SideMenus/SideMenus.module.css b/src/components/UI/Layout/Navigation/SideMenus/SideMenus.module.css index 348b1bb63..a528c79c0 100644 --- a/src/components/UI/Layout/Navigation/SideMenus/SideMenus.module.css +++ b/src/components/UI/Layout/Navigation/SideMenus/SideMenus.module.css @@ -146,3 +146,12 @@ transform: scale3d(1, 1, 1); } } +.ExpandedIcon { + color: #717971; + margin-left: auto; +} + +.CollapsedIcon { + color: #717971; + margin-left: auto; +} diff --git a/src/components/UI/Layout/Navigation/SideMenus/SideMenus.tsx b/src/components/UI/Layout/Navigation/SideMenus/SideMenus.tsx index 83a517d76..b024ea275 100644 --- a/src/components/UI/Layout/Navigation/SideMenus/SideMenus.tsx +++ b/src/components/UI/Layout/Navigation/SideMenus/SideMenus.tsx @@ -18,7 +18,7 @@ import { getSideDrawerMenus } from 'context/role'; import styles from './SideMenus.module.css'; import { useTranslation } from 'react-i18next'; import { Menu } from 'config/menu'; - +import { ArrowDropDown } from '@mui/icons-material'; export interface SideMenusProps { opened: boolean; } @@ -176,6 +176,16 @@ const SideMenus = ({ opened }: SideMenusProps) => { }); const links = menu.children ? {} : { component: NavLink, to: parentredirectPath }; + const dropdownArrow = menu.children && ( + + ); + let listItemButton = ( { /> {opened && ( + <> { } primary={t(menu.title as any)} /> + {dropdownArrow} + )} {menu.new && {'New'}}