Skip to content

Commit 3785c1c

Browse files
committed
feat: add isEnterprise context value in MainContext
1 parent c4045b5 commit 3785c1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/common/navigation/NavigationRoutes.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import {
4444
IntelligenceConfig,
4545
motion,
4646
SidePanelConfig,
47+
InstallationType,
4748
} from '@devtron-labs/devtron-fe-common-lib'
4849
import { Route, Switch, useRouteMatch, useHistory, useLocation } from 'react-router-dom'
4950
import * as Sentry from '@sentry/browser'
@@ -494,6 +495,7 @@ export default function NavigationRoutes({ reloadVersionConfig }: Readonly<Navig
494495
setIntelligenceConfig,
495496
sidePanelConfig,
496497
setSidePanelConfig,
498+
isEnterprise: currentServerInfo?.serverInfo?.installationType === InstallationType.ENTERPRISE,
497499
}}
498500
>
499501
<motion.main

0 commit comments

Comments
 (0)