1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-12 13:48:35 +02:00

Fix PR commments

This commit is contained in:
andreas-unleash 2022-07-13 09:40:39 +03:00
parent 672d948d24
commit e8a77d4928
2 changed files with 10 additions and 10 deletions

View File

@ -6,10 +6,10 @@ interface IContextBannerProps {
context: SdkContextSchema; context: SdkContextSchema;
} }
const StyledContextFieldList = styled('ul')(() => ({ const StyledContextFieldList = styled('ul')(({theme}) => ({
color: colors.black, color: colors.black,
listStyleType: 'none', listStyleType: 'none',
paddingInlineStart: 16, paddingInlineStart: theme.spacing(16),
})); }));
export const ContextBanner = ({ context }: IContextBannerProps) => { export const ContextBanner = ({ context }: IContextBannerProps) => {

View File

@ -10,29 +10,29 @@ interface IFeatureStatusCellProps {
enabled: boolean; enabled: boolean;
} }
const StyledFalseChip = styled(Chip)(() => ({ const StyledFalseChip = styled(Chip)(({theme}) => ({
width: 80, width: 80,
borderRadius: '5px', borderRadius: '5px',
border: `1px solid ${colors.red['700']}`, border: `1px solid ${theme.palette.error.main}`,
backgroundColor: colors.red['200'], backgroundColor: colors.red['200'],
['& .MuiChip-label']: { ['& .MuiChip-label']: {
color: colors.red['700'], color: theme.palette.error.main,
}, },
['& .MuiChip-icon']: { ['& .MuiChip-icon']: {
color: colors.red['700'], color: theme.palette.error.main,
}, },
})); }));
const StyledTrueChip = styled(Chip)(() => ({ const StyledTrueChip = styled(Chip)(({theme}) => ({
width: 80, width: 80,
borderRadius: '5px', borderRadius: '5px',
border: `1px solid ${colors.green['700']}`, border: `1px solid ${theme.palette.success.main}`,
backgroundColor: colors.green['100'], backgroundColor: colors.green['100'],
['& .MuiChip-label']: { ['& .MuiChip-label']: {
color: colors.green['700'], color: theme.palette.success.main,
}, },
['& .MuiChip-icon']: { ['& .MuiChip-icon']: {
color: colors.green['700'], color: theme.palette.success.main,
}, },
})); }));