Added side menu close on click
This commit is contained in:
1 parent
8da0d22d83
commit
a32f8dd8a4
1 file changed
+4
-1
@@ -148,7 +148,10 @@ function Sidebar() {
|
||||
return filteredAccountMenuItems.map((item) => (
|
||||
<MenuItem
|
||||
key={item.name}
|
||||
onClick={() => navigate(item.path)}
|
||||
onClick={() => {
|
||||
closePopup();
|
||||
navigate(item.path)
|
||||
}}
|
||||
sx={{
|
||||
gap: theme.spacing(2),
|
||||
borderRadius: theme.shape.borderRadius,
|
||||
|
||||
Reference in new issue
Block a user