From e8a77d4928347d8cbbbb4348016b7b6f52e2ff66 Mon Sep 17 00:00:00 2001 From: andreas-unleash <104830839+andreas-unleash@users.noreply.github.com> Date: Wed, 13 Jul 2022 09:40:39 +0300 Subject: [PATCH] Fix PR commments --- .../ContextBanner/ContextBanner.tsx | 4 ++-- .../FeatureStatusCell/FeatureStatusCell.tsx | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/ContextBanner/ContextBanner.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/ContextBanner/ContextBanner.tsx index 0f282ee654..03b2ecba83 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/ContextBanner/ContextBanner.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/ContextBanner/ContextBanner.tsx @@ -6,10 +6,10 @@ interface IContextBannerProps { context: SdkContextSchema; } -const StyledContextFieldList = styled('ul')(() => ({ +const StyledContextFieldList = styled('ul')(({theme}) => ({ color: colors.black, listStyleType: 'none', - paddingInlineStart: 16, + paddingInlineStart: theme.spacing(16), })); export const ContextBanner = ({ context }: IContextBannerProps) => { diff --git a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureStatusCell/FeatureStatusCell.tsx b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureStatusCell/FeatureStatusCell.tsx index f46c8c7447..f51e998ac6 100644 --- a/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureStatusCell/FeatureStatusCell.tsx +++ b/frontend/src/component/playground/Playground/PlaygroundResultsTable/FeatureStatusCell/FeatureStatusCell.tsx @@ -10,29 +10,29 @@ interface IFeatureStatusCellProps { enabled: boolean; } -const StyledFalseChip = styled(Chip)(() => ({ +const StyledFalseChip = styled(Chip)(({theme}) => ({ width: 80, borderRadius: '5px', - border: `1px solid ${colors.red['700']}`, + border: `1px solid ${theme.palette.error.main}`, backgroundColor: colors.red['200'], ['& .MuiChip-label']: { - color: colors.red['700'], + color: theme.palette.error.main, }, ['& .MuiChip-icon']: { - color: colors.red['700'], + color: theme.palette.error.main, }, })); -const StyledTrueChip = styled(Chip)(() => ({ +const StyledTrueChip = styled(Chip)(({theme}) => ({ width: 80, borderRadius: '5px', - border: `1px solid ${colors.green['700']}`, + border: `1px solid ${theme.palette.success.main}`, backgroundColor: colors.green['100'], ['& .MuiChip-label']: { - color: colors.green['700'], + color: theme.palette.success.main, }, ['& .MuiChip-icon']: { - color: colors.green['700'], + color: theme.palette.success.main, }, }));