@@ -3,6 +3,7 @@ import { Suspense } from 'react';
33import { Navigate , Route , Routes , useParams } from 'react-router-dom' ;
44import ErrorNotFound from '../../../../components/ErrorNotFound' ;
55import Loader from '../../../../components/Loader' ;
6+ import useHelper from '../../../../utils/hooks/useHelper' ;
67import FintelTemplate from './fintel_templates/FintelTemplate' ;
78import SubType from './SubType' ;
89import EntitySettingAttributesCard from './entity_setting/EntitySettingAttributesCard' ;
@@ -40,6 +41,8 @@ const SubTypeIndexRedirect = () => {
4041
4142const RootSubType = ( ) => {
4243 const { subTypeId } = useParams < { subTypeId ?: string } > ( ) ;
44+ const { isFeatureEnable } = useHelper ( ) ;
45+ const isCustomViewFeatureEnabled = isFeatureEnable ( 'CUSTOM_VIEW' ) ;
4346
4447 if ( ! subTypeId ) return < ErrorNotFound /> ;
4548
@@ -52,7 +55,7 @@ const RootSubType = () => {
5255 < Route path = "templates" element = { < FintelTemplatesManager /> } />
5356 < Route path = "attributes" element = { < EntitySettingAttributesCard /> } />
5457 < Route path = "overview-layout" element = { < EntitySettingCustomOverview /> } />
55- < Route path = "custom-views" element = { < CustomViewsSettings /> } />
58+ { isCustomViewFeatureEnabled ? < Route path = "custom-views" element = { < CustomViewsSettings /> } /> : null }
5659 </ Route >
5760 < Route
5861 path = "/templates/:templateId"
0 commit comments