1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-05 17:53:12 +02:00

[Gitar] Updating TSX files

This commit is contained in:
Gitar 2024-10-04 12:33:49 +00:00
parent 1875c9b6d1
commit 1b444c6495

View File

@ -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,13 +318,10 @@ export const FeatureToggleListTable: VFC = () => {
<FeatureToggleListActions
onExportClick={() => setShowExportDialog(true)}
/>
{featureSearchFeedback !== false &&
featureSearchFeedback?.enabled && (
{featureSearchFeedback?.enabled && (
<>
<ConditionallyRender
condition={
variant === 'withoutText'
}
condition={variant === 'withoutText'}
show={
<Tooltip
title='Provide feedback'
@ -349,12 +342,8 @@ export const FeatureToggleListTable: VFC = () => {
condition={variant === 'withText'}
show={
<Button
startIcon={
<ReviewsOutlined />
}
onClick={
createFeedbackContext
}
startIcon={<ReviewsOutlined />}
onClick={createFeedbackContext}
>
Provide feedback
</Button>
@ -366,12 +355,8 @@ export const FeatureToggleListTable: VFC = () => {
}
show={
<Button
startIcon={
<ReviewsOutlined />
}
onClick={
createFeedbackContext
}
startIcon={<ReviewsOutlined />}
onClick={createFeedbackContext}
variant='outlined'
>
Provide feedback