update sidebar

This commit is contained in:
hamid zarghami
2026-07-19 11:32:33 +03:30
parent 2b338d53b1
commit 44fd61c039
2 changed files with 18 additions and 0 deletions
+4
View File
@@ -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] ?? "";
};