Skip to content
This repository was archived by the owner on Apr 30, 2023. It is now read-only.

Commit 7579e90

Browse files
authored
Merge pull request #403 from mareklibra/features.passForSingleCluster
Pass features for single-cluster flow
2 parents 6af706a + 3be67c0 commit 7579e90

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/components/App.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import { Provider } from 'react-redux';
33
import { Router } from 'react-router-dom';
44
import { Page } from '@patternfly/react-core';
5-
import { Store, Router as LibRouter, Features } from 'openshift-assisted-ui-lib';
5+
import { Store, Router as LibRouter, Features, Config } from 'openshift-assisted-ui-lib';
66
import history from '../history';
77
import Header from './ui/Header';
88
// import Sidebar from './Sidebar';
@@ -23,7 +23,13 @@ const App: React.FC = () => (
2323
isManagedSidebar // enable this to automatically hide sidebar in mobile
2424
defaultManagedSidebarIsOpen={false}
2525
>
26-
<LibRouter features={Features.STANDALONE_DEPLOYMENT_ENABLED_FEATURES} />
26+
<LibRouter
27+
features={
28+
Config.isSingleClusterMode()
29+
? Features.SINGLE_CLUSTER_ENABLED_FEATURES
30+
: Features.STANDALONE_DEPLOYMENT_ENABLED_FEATURES
31+
}
32+
/>
2733
</Page>
2834
</Router>
2935
</Provider>

0 commit comments

Comments
 (0)