55 Pagination ,
66 useChakraToast as useToast ,
77} from "fidesui" ;
8- import { NextPage } from "next" ;
98import { useEffect , useState } from "react" ;
109
1110import { DebouncedSearchInput } from "~/features/common/DebouncedSearchInput" ;
@@ -18,10 +17,14 @@ import { EmptyMonitorsResult } from "~/features/data-discovery-and-detection/act
1817import { MonitorResult } from "~/features/data-discovery-and-detection/action-center/MonitorResult" ;
1918import { MONITOR_TYPES } from "~/features/data-discovery-and-detection/action-center/utils/getMonitorType" ;
2019
21- const MonitorList : NextPage = ( ) => {
20+ const MonitorList = ( ) => {
2221 const toast = useToast ( ) ;
2322 const {
24- flags : { webMonitor : webMonitorEnabled , heliosV2 : heliosV2Enabled } ,
23+ flags : {
24+ webMonitor : webMonitorEnabled ,
25+ heliosV2 : heliosV2Enabled ,
26+ oktaMonitor : oktaMonitorEnabled ,
27+ } ,
2528 } = useFeatures ( ) ;
2629 const { paginationProps, pageIndex, pageSize, resetPagination } =
2730 useAntPagination ( ) ;
@@ -31,6 +34,7 @@ const MonitorList: NextPage = () => {
3134 const monitorTypes = [
3235 ...( webMonitorEnabled ? [ MONITOR_TYPES . WEBSITE ] : [ ] ) ,
3336 ...( heliosV2Enabled ? [ MONITOR_TYPES . DATASTORE ] : [ ] ) ,
37+ ...( oktaMonitorEnabled ? [ MONITOR_TYPES . INFRASTRUCTURE ] : [ ] ) ,
3438 ] as const ;
3539
3640 const { data, isError, isLoading } = useGetAggregateMonitorResultsQuery ( {
@@ -60,7 +64,7 @@ const MonitorList: NextPage = () => {
6064 ! ! monitor . key && typeof monitor . key !== "undefined" ? [ monitor ] : [ ] ,
6165 ) || [ ] ;
6266
63- if ( ! webMonitorEnabled && ! heliosV2Enabled ) {
67+ if ( ! webMonitorEnabled && ! heliosV2Enabled && ! oktaMonitorEnabled ) {
6468 return < DisabledMonitorsPage /> ;
6569 }
6670
0 commit comments