Skip to content

Commit e5af42b

Browse files
authored
fix(orchestrator): Use Code Snippet default colors in input schema dialog (#928)
Signed-off-by: Lior Soffer <liorsoffer1@gmail.com>
1 parent 1cf9f22 commit e5af42b

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-orchestrator': patch
3+
---
4+
5+
Use Code Snippet default colors in input schema dialog

workspaces/orchestrator/plugins/orchestrator/src/components/OrchestratorPage/InputSchemaDialog.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { useApi } from '@backstage/core-plugin-api';
2626

2727
import Box from '@mui/material/Box';
2828
import Button from '@mui/material/Button';
29-
import { useTheme } from '@mui/material/styles';
3029

3130
import { InputSchemaResponseDTO } from '@red-hat-developer-hub/backstage-plugin-orchestrator-common';
3231

@@ -43,8 +42,6 @@ const InputSchemaDialogContent = ({
4342
loading: boolean;
4443
error: Error | undefined;
4544
}) => {
46-
const theme = useTheme();
47-
4845
if (loading) return <Progress />;
4946
if (error)
5047
return (
@@ -64,11 +61,6 @@ const InputSchemaDialogContent = ({
6461
showLineNumbers
6562
showCopyCodeButton
6663
customStyle={{
67-
color: 'pink',
68-
backgroundColor:
69-
theme.palette.mode === 'dark'
70-
? theme.palette.grey[500]
71-
: theme.palette.grey[500],
7264
padding: '25px 0',
7365
}}
7466
/>

0 commit comments

Comments
 (0)