improvement: billing and report tabs turned invisible. removed from permissions dialog too. this is temporary.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user