update sidebar
This commit is contained in:
@@ -43,6 +43,10 @@ export const getSubMenuNameFromPath = (pathname: string): string => {
|
||||
return "customers";
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/workspace") || pathname.startsWith("/project") || pathname.startsWith("/taskmanager")) {
|
||||
return "other";
|
||||
}
|
||||
|
||||
const segment = pathname.split("/")[1] ?? "";
|
||||
return pathSegmentToSubMenu[segment] ?? "";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user