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 { withTableState } from 'utils/withTableState';
import { FeatureTagCell } from 'component/common/Table/cells/FeatureTagCell/FeatureTagCell'; import { FeatureTagCell } from 'component/common/Table/cells/FeatureTagCell/FeatureTagCell';
import { FeatureSegmentCell } from 'component/common/Table/cells/FeatureSegmentCell/FeatureSegmentCell'; import { FeatureSegmentCell } from 'component/common/Table/cells/FeatureSegmentCell/FeatureSegmentCell';
import { useUiFlag } from 'hooks/useUiFlag';
import { FeatureToggleListActions } from './FeatureToggleListActions/FeatureToggleListActions'; import { FeatureToggleListActions } from './FeatureToggleListActions/FeatureToggleListActions';
import useLoading from 'hooks/useLoading'; import useLoading from 'hooks/useLoading';
import { usePlausibleTracker } from 'hooks/usePlausibleTracker'; import { usePlausibleTracker } from 'hooks/usePlausibleTracker';
@ -55,7 +54,7 @@ const feedbackCategory = 'search';
export const FeatureToggleListTable: VFC = () => { export const FeatureToggleListTable: VFC = () => {
const theme = useTheme(); const theme = useTheme();
const featureSearchFeedback = useUiFlag('featureSearchFeedback'); const featureSearchFeedback = true;
const { trackEvent } = usePlausibleTracker(); const { trackEvent } = usePlausibleTracker();
const { environments } = useEnvironments(); const { environments } = useEnvironments();
const enabledEnvironments = environments const enabledEnvironments = environments
@ -68,10 +67,7 @@ export const FeatureToggleListTable: VFC = () => {
const { setToastApiError } = useToast(); const { setToastApiError } = useToast();
const { uiConfig } = useUiConfig(); const { uiConfig } = useUiConfig();
const variant = const variant = featureSearchFeedback?.name ?? '';
featureSearchFeedback !== false
? featureSearchFeedback?.name ?? ''
: '';
const { openFeedback } = useFeedback( const { openFeedback } = useFeedback(
feedbackCategory, feedbackCategory,
@ -322,13 +318,10 @@ export const FeatureToggleListTable: VFC = () => {
<FeatureToggleListActions <FeatureToggleListActions
onExportClick={() => setShowExportDialog(true)} onExportClick={() => setShowExportDialog(true)}
/> />
{featureSearchFeedback !== false && {featureSearchFeedback?.enabled && (
featureSearchFeedback?.enabled && (
<> <>
<ConditionallyRender <ConditionallyRender
condition={ condition={variant === 'withoutText'}
variant === 'withoutText'
}
show={ show={
<Tooltip <Tooltip
title='Provide feedback' title='Provide feedback'
@ -349,12 +342,8 @@ export const FeatureToggleListTable: VFC = () => {
condition={variant === 'withText'} condition={variant === 'withText'}
show={ show={
<Button <Button
startIcon={ startIcon={<ReviewsOutlined />}
<ReviewsOutlined /> onClick={createFeedbackContext}
}
onClick={
createFeedbackContext
}
> >
Provide feedback Provide feedback
</Button> </Button>
@ -366,12 +355,8 @@ export const FeatureToggleListTable: VFC = () => {
} }
show={ show={
<Button <Button
startIcon={ startIcon={<ReviewsOutlined />}
<ReviewsOutlined /> onClick={createFeedbackContext}
}
onClick={
createFeedbackContext
}
variant='outlined' variant='outlined'
> >
Provide feedback Provide feedback