diff --git a/src/components/UI/Layout/Navigation/SideMenus/SideMenus.module.css b/src/components/UI/Layout/Navigation/SideMenus/SideMenus.module.css index 348b1bb63..4a4d4f35a 100644 --- a/src/components/UI/Layout/Navigation/SideMenus/SideMenus.module.css +++ b/src/components/UI/Layout/Navigation/SideMenus/SideMenus.module.css @@ -146,3 +146,13 @@ 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..6829c1569 100644 --- a/src/components/UI/Layout/Navigation/SideMenus/SideMenus.tsx +++ b/src/components/UI/Layout/Navigation/SideMenus/SideMenus.tsx @@ -18,6 +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 +177,15 @@ 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'}}