diff --git a/src/components/Assets/index.tsx b/src/components/Assets/index.tsx index c1a382160..baad64d03 100644 --- a/src/components/Assets/index.tsx +++ b/src/components/Assets/index.tsx @@ -204,9 +204,9 @@ export const Assets = () => { /> ) )} - + diff --git a/src/components/Insights/InsightsCatalog/index.tsx b/src/components/Insights/InsightsCatalog/index.tsx index f36353dad..c54fcd780 100644 --- a/src/components/Insights/InsightsCatalog/index.tsx +++ b/src/components/Insights/InsightsCatalog/index.tsx @@ -2,8 +2,10 @@ import { useCallback, useContext, useEffect, useState } from "react"; import { usePrevious } from "../../../hooks/usePrevious"; import { useTheme } from "styled-components"; +import { getFeatureFlagValue } from "../../../featureFlags"; import { useDebounce } from "../../../hooks/useDebounce"; import { isNumber } from "../../../typeGuards/isNumber"; +import { FeatureFlag } from "../../../types"; import { sendTrackingEvent } from "../../../utils/sendTrackingEvent"; import { ConfigContext } from "../../common/App/ConfigContext"; import { Pagination } from "../../common/Pagination"; @@ -50,6 +52,11 @@ export const InsightsCatalog = (props: InsightsCatalogProps) => { const previousMode = usePrevious(mode); const theme = useTheme(); + const isViewModeButtonVisible = getFeatureFlagValue( + config, + FeatureFlag.IS_INSIGHT_DISMISSAL_ENABLED + ); + const refreshData = useCallback( () => props.onQueryChange({ @@ -145,9 +152,9 @@ export const InsightsCatalog = (props: InsightsCatalogProps) => { ]} default={defaultQuery.sorting} /> - + @@ -156,8 +163,8 @@ export const InsightsCatalog = (props: InsightsCatalogProps) => { {mode === ViewMode.OnlyDismissed && (