improvement: billing and report tabs turned invisible. removed from permissions dialog too. this is temporary.

This commit is contained in:
2026-07-14 03:17:57 +03:30
parent d383a4abc3
commit 8de15ecdb5
5 changed files with 63 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ import {
canViewTasks,
canViewTab,
} from '@/components/shared/permissions';
import { isHiddenTabPath } from '@/components/shared/hidden-tabs';
import {
counterpartOrganizationType,
organizationTypeIcon,
@@ -82,6 +83,9 @@ function Sidebar({ mobileOpen = false, onClose }: SidebarProps) {
const visibleMenu = useMemo(
() =>
menu.filter((item) => {
if (isHiddenTabPath(item.path)) {
return false;
}
if (!orgType || !item.orgTypes.includes(orgType)) {
return false;
}