@@ -8,6 +8,7 @@ import { useStore } from '../../stores/storeConfig';
88import { useDispatch , useSelector } from 'react-redux' ;
99import { AppDispatch , RootState } from '../../stores/store' ;
1010import { setCurrentTab } from '../../stores' ;
11+ import { FeatureFlags , isFeatureEnabled } from '../../utils/featureFlags' ;
1112
1213// import MapPage from '../../pages/MapPage';
1314interface IProps {
@@ -19,7 +20,7 @@ const GroupByTablesPanel = lazy(() => import('../groupTable/GroupByTablesPanel')
1920const MapAccidents = lazy ( ( ) => import ( '../map/AccidentsMap' ) ) ;
2021const AccidentsTable = lazy ( ( ) => import ( '../detailsTable/AccidentsTable' ) ) ;
2122const MyImageGallery = lazy ( ( ) => import ( '../organisms/MyImageGallery' ) ) ;
22- // const RiskHotspotModel = lazy(() => import('../organisms/RiskHotspotModel'));
23+ const RiskHotspotModel = lazy ( ( ) => import ( '../organisms/RiskHotspotModel' ) ) ;
2324
2425const styles = {
2526 tab : { marginTop : '0.5rem' } ,
@@ -86,7 +87,7 @@ export const TabsTemplate: FunctionComponent<IProps> = observer(({ type }) => {
8687 </ Suspense >
8788 </ ErrorBoundary >
8889 </ Tab >
89- { /* { isFeatureEnabled(FeatureFlags.RISK_MODEL) && (
90+ { isFeatureEnabled ( FeatureFlags . RISK_MODEL ) && (
9091 < Tab style = { styles . tab } eventKey = 'riskModel' title = { t ( 'RiskModel' ) } >
9192 < ErrorBoundary >
9293 < Suspense fallback = { < Loader /> } >
@@ -96,7 +97,7 @@ export const TabsTemplate: FunctionComponent<IProps> = observer(({ type }) => {
9697 </ Suspense >
9798 </ ErrorBoundary >
9899 </ Tab >
99- )} */ }
100+ ) }
100101 </ Tabs >
101102 ) ;
102103} ) ;
0 commit comments