diff --git a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx index 5cdfc53034..59872e6db7 100644 --- a/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx +++ b/frontend/src/component/feature/FeatureToggleList/FeatureToggleListTable.tsx @@ -34,7 +34,6 @@ import { FeatureToggleFilters } from './FeatureToggleFilters/FeatureToggleFilter import { withTableState } from 'utils/withTableState'; import { FeatureTagCell } from 'component/common/Table/cells/FeatureTagCell/FeatureTagCell'; import { FeatureSegmentCell } from 'component/common/Table/cells/FeatureSegmentCell/FeatureSegmentCell'; -import { useUiFlag } from 'hooks/useUiFlag'; import { FeatureToggleListActions } from './FeatureToggleListActions/FeatureToggleListActions'; import useLoading from 'hooks/useLoading'; import { usePlausibleTracker } from 'hooks/usePlausibleTracker'; @@ -55,7 +54,7 @@ const feedbackCategory = 'search'; export const FeatureToggleListTable: VFC = () => { const theme = useTheme(); - const featureSearchFeedback = useUiFlag('featureSearchFeedback'); + const featureSearchFeedback = true; const { trackEvent } = usePlausibleTracker(); const { environments } = useEnvironments(); const enabledEnvironments = environments @@ -68,10 +67,7 @@ export const FeatureToggleListTable: VFC = () => { const { setToastApiError } = useToast(); const { uiConfig } = useUiConfig(); - const variant = - featureSearchFeedback !== false - ? featureSearchFeedback?.name ?? '' - : ''; + const variant = featureSearchFeedback?.name ?? ''; const { openFeedback } = useFeedback( feedbackCategory, @@ -322,64 +318,53 @@ export const FeatureToggleListTable: VFC = () => { setShowExportDialog(true)} /> - {featureSearchFeedback !== false && - featureSearchFeedback?.enabled && ( - <> - - - - - - } - /> - - } + {featureSearchFeedback?.enabled && ( + <> + + - Provide feedback - - } - />{' '} - - } - onClick={ - createFeedbackContext - } - variant='outlined' - > - Provide feedback - - } - /> - - )} + + + + } + /> + } + onClick={createFeedbackContext} + > + Provide feedback + + } + />{' '} + } + onClick={createFeedbackContext} + variant='outlined' + > + Provide feedback + + } + /> + + )} } >