diff --git a/frontend/src/component/feature/StrategyTypes/NewStrategyVariants.tsx b/frontend/src/component/feature/StrategyTypes/NewStrategyVariants.tsx index 2ff4ee2fe5..3773012190 100644 --- a/frontend/src/component/feature/StrategyTypes/NewStrategyVariants.tsx +++ b/frontend/src/component/feature/StrategyTypes/NewStrategyVariants.tsx @@ -7,7 +7,7 @@ import PermissionButton from 'component/common/PermissionButton/PermissionButton import { UPDATE_FEATURE_ENVIRONMENT_VARIANTS } from '../../providers/AccessProvider/permissions'; import { v4 as uuidv4 } from 'uuid'; import { WeightType } from '../../../constants/variantTypes'; -import { Box, styled, Typography, useTheme } from '@mui/material'; +import { Box, styled, Typography, useTheme, Alert } from '@mui/material'; import type { IFeatureStrategy } from 'interfaces/strategy'; import { VariantsSplitPreview } from 'component/common/VariantsSplitPreview/VariantsSplitPreview'; import { HelpIcon } from 'component/common/HelpIcon/HelpIcon'; @@ -28,11 +28,6 @@ const StyledHelpIconBox = styled(Box)(({ theme }) => ({ marginBottom: theme.spacing(1), })); -const StyledVariantsHeader = styled('div')(({ theme }) => ({ - color: theme.palette.text.secondary, - marginTop: theme.spacing(1.5), -})); - export const NewStrategyVariants: FC<{ setStrategy: React.Dispatch< React.SetStateAction> @@ -123,10 +118,10 @@ export const NewStrategyVariants: FC<{ return ( <> - + Variants enhance a feature flag by providing a version of the feature to be enabled - + Variants ({ marginBottom: theme.spacing(1), })); -const StyledVariantsHeader = styled('div')(({ theme }) => ({ - color: theme.palette.text.secondary, - marginTop: theme.spacing(1.5), -})); - interface IMilestoneStrategyVariantsProps { strategy: Omit; setStrategy: React.Dispatch< @@ -115,10 +110,10 @@ export const MilestoneStrategyVariants = ({ return ( <> - + Variants enhance a feature flag by providing a version of the feature to be enabled - + Variants