File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
clients/admin-ui/src/features/integrations Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { useState } from "react" ;
2
2
3
+ import { useFlags } from "~/features/common/features/features.slice" ;
3
4
import { IntegrationTypeInfo } from "~/features/integrations/add-integration/allIntegrationTypes" ;
4
5
5
6
export enum IntegrationFilterTabs {
@@ -12,7 +13,11 @@ export enum IntegrationFilterTabs {
12
13
}
13
14
14
15
const useIntegrationFilterTabs = ( integrationTypes ?: IntegrationTypeInfo [ ] ) => {
15
- const tabs = Object . values ( IntegrationFilterTabs ) ;
16
+ const { flags } = useFlags ( ) ;
17
+ const tabs = Object . values ( IntegrationFilterTabs ) . filter (
18
+ ( tab ) =>
19
+ tab !== IntegrationFilterTabs . IDENTITY_PROVIDER || flags . oktaMonitor ,
20
+ ) ;
16
21
17
22
const [ tabIndex , setTabIndex ] = useState ( 0 ) ;
18
23
const currentTab = tabs [ tabIndex ] ;
You can’t perform that action at this time.
0 commit comments