mirror of
https://github.com/Unleash/unleash.git
synced 2025-08-18 13:48:58 +02:00
chore: update styling for variant box (#9953)
This commit is contained in:
parent
f55ea5f387
commit
ea26e008d0
@ -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<Partial<IFeatureStrategy>>
|
||||
@ -123,10 +118,10 @@ export const NewStrategyVariants: FC<{
|
||||
|
||||
return (
|
||||
<>
|
||||
<StyledVariantsHeader>
|
||||
<Alert severity='info' icon={false}>
|
||||
Variants enhance a feature flag by providing a version of the
|
||||
feature to be enabled
|
||||
</StyledVariantsHeader>
|
||||
</Alert>
|
||||
<StyledHelpIconBox>
|
||||
<Typography>Variants</Typography>
|
||||
<HelpIcon
|
||||
|
@ -1,6 +1,6 @@
|
||||
import type { IReleasePlanMilestoneStrategy } from 'interfaces/releasePlans';
|
||||
import { useEffect, useState } from 'react';
|
||||
import { Box, styled, Typography, Button } from '@mui/material';
|
||||
import { Box, styled, Typography, Button, Alert } from '@mui/material';
|
||||
import { HelpIcon } from '../../../../common/HelpIcon/HelpIcon';
|
||||
import { StrategyVariantsUpgradeAlert } from 'component/common/StrategyVariantsUpgradeAlert/StrategyVariantsUpgradeAlert';
|
||||
import { VariantForm } from 'component/feature/FeatureView/FeatureVariants/FeatureEnvironmentVariants/EnvironmentVariantsModal/VariantForm/VariantForm';
|
||||
@ -24,11 +24,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),
|
||||
}));
|
||||
|
||||
interface IMilestoneStrategyVariantsProps {
|
||||
strategy: Omit<IReleasePlanMilestoneStrategy, 'milestoneId'>;
|
||||
setStrategy: React.Dispatch<
|
||||
@ -115,10 +110,10 @@ export const MilestoneStrategyVariants = ({
|
||||
|
||||
return (
|
||||
<>
|
||||
<StyledVariantsHeader>
|
||||
<Alert severity='info' icon={false}>
|
||||
Variants enhance a feature flag by providing a version of the
|
||||
feature to be enabled
|
||||
</StyledVariantsHeader>
|
||||
</Alert>
|
||||
<StyledHelpIconBox>
|
||||
<Typography>Variants</Typography>
|
||||
<HelpIcon
|
||||
|
Loading…
Reference in New Issue
Block a user