mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feature(Sidebar): BIG-374 filtering the sidebar items based on each item feature support.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import { FormattedMessage as T } from 'components';
|
||||
import { Features } from '../common/features';
|
||||
import {
|
||||
ISidebarMenuItemType,
|
||||
ISidebarMenuOverlayIds,
|
||||
@@ -74,6 +75,7 @@ export const SidebarMenu = [
|
||||
text: <T id={'sidebar_warehouse_transfer'} />,
|
||||
href: '/warehouses-transfers',
|
||||
type: ISidebarMenuItemType.Link,
|
||||
feature: Features.Warehouses
|
||||
},
|
||||
{
|
||||
text: <T id={'category_list'} />,
|
||||
@@ -105,6 +107,7 @@ export const SidebarMenu = [
|
||||
),
|
||||
href: '/warehouses-transfers/new',
|
||||
type: ISidebarMenuItemType.Link,
|
||||
feature: Features.Warehouses
|
||||
},
|
||||
{
|
||||
text: <T id={'New service'} />,
|
||||
|
||||
Reference in New Issue
Block a user