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 EnvironmentIcon from 'component/common/EnvironmentIcon/EnvironmentIcon';
|
||||
import { useFeedback } from 'component/feedbackNew/useFeedback';
|
||||
import { useUiFlag } from 'hooks/useUiFlag';
|
||||
|
||||
interface IFeatureStrategyFormProps {
|
||||
feature: IFeatureToggle;
|
||||
@ -221,9 +220,6 @@ export const FeatureStrategyForm = ({
|
||||
environmentId,
|
||||
);
|
||||
const { strategyDefinition } = useStrategy(strategy?.name);
|
||||
const newStrategyConfigurationFeedback = useUiFlag(
|
||||
'newStrategyConfigurationFeedback',
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
trackEvent('new-strategy-form', {
|
||||
@ -351,7 +347,7 @@ export const FeatureStrategyForm = ({
|
||||
try {
|
||||
await onSubmit();
|
||||
|
||||
if (newStrategyConfigurationFeedback && !hasSubmittedFeedback) {
|
||||
if (!hasSubmittedFeedback) {
|
||||
createFeedbackContext();
|
||||
}
|
||||
} catch (e) {
|
||||
|
Loading…
Reference in New Issue
Block a user