feature(Sidebar): BIG-374 filtering the sidebar items based on each item feature support.

This commit is contained in:
a.bouhuolia
2022-04-18 00:16:37 +02:00
parent 5e4e9c37c3
commit 8d1825a065
4 changed files with 198 additions and 59 deletions

View File

@@ -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'} />,