LFFE-28 Fixed bug sidebar in mobile

This commit is contained in:
AmirHossein Mahmoodi
2023-11-18 11:17:24 +03:30
parent 046651869a
commit 182499cd5d
2 changed files with 4 additions and 0 deletions

View File

@@ -51,6 +51,7 @@ const SidebarListItem = ({item, dispatch, handleDrawerToggle}) => {
if (hasSubItems) {
dispatch({type: "COLLAPSE_MENU", key: item.key});
}
handleDrawerToggle()
}}
sx={{
minHeight: 48,

View File

@@ -43,6 +43,9 @@ const SidebarListSubItem = ({item, handleDrawerToggle}) => {
to={{
pathname: subitem.route,
}}
onClick={() => {
handleDrawerToggle()
}}
sx={{
minHeight: 48,
}}