mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-13 13:48:59 +02:00
[Gitar] Cleaning up Tsx files
This commit is contained in:
parent
e64d1b92d2
commit
fdadd213b6
@ -46,7 +46,6 @@ import { formatStrategyName } from 'utils/strategyNames';
|
|||||||
import { Badge } from 'component/common/Badge/Badge';
|
import { Badge } from 'component/common/Badge/Badge';
|
||||||
import EnvironmentIcon from 'component/common/EnvironmentIcon/EnvironmentIcon';
|
import EnvironmentIcon from 'component/common/EnvironmentIcon/EnvironmentIcon';
|
||||||
import { useFeedback } from 'component/feedbackNew/useFeedback';
|
import { useFeedback } from 'component/feedbackNew/useFeedback';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
|
|
||||||
interface IFeatureStrategyFormProps {
|
interface IFeatureStrategyFormProps {
|
||||||
feature: IFeatureToggle;
|
feature: IFeatureToggle;
|
||||||
@ -221,9 +220,6 @@ export const FeatureStrategyForm = ({
|
|||||||
environmentId,
|
environmentId,
|
||||||
);
|
);
|
||||||
const { strategyDefinition } = useStrategy(strategy?.name);
|
const { strategyDefinition } = useStrategy(strategy?.name);
|
||||||
const newStrategyConfigurationFeedback = useUiFlag(
|
|
||||||
'newStrategyConfigurationFeedback',
|
|
||||||
);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
trackEvent('new-strategy-form', {
|
trackEvent('new-strategy-form', {
|
||||||
@ -351,7 +347,7 @@ export const FeatureStrategyForm = ({
|
|||||||
try {
|
try {
|
||||||
await onSubmit();
|
await onSubmit();
|
||||||
|
|
||||||
if (newStrategyConfigurationFeedback && !hasSubmittedFeedback) {
|
if (!hasSubmittedFeedback) {
|
||||||
createFeedbackContext();
|
createFeedbackContext();
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user