Skip to content

Commit 96ddc3c

Browse files
author
Ruben van Leeuwen
committed
resolves linting errors
1 parent 19732d2 commit 96ddc3c

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

packages/orchestrator-ui-components/src/components/WfoWorkflowSteps/WfoStep/WfoCodeViewSelector.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import React, { useCallback } from 'react';
22

33
import { useTranslations } from 'next-intl';
4-
import css from 'styled-jsx/css';
54

65
import { EuiButtonGroup } from '@elastic/eui';
7-
import { ICON_SIDES } from '@elastic/eui/src/components/badge/badge';
86

97
import { useOrchestratorTheme } from '@/hooks';
108
import { WfoBracketSquare, WfoCommandLine, WfoTableCells } from '@/icons';

packages/orchestrator-ui-components/src/components/WfoWorkflowSteps/WfoStep/WfoStep.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ export const WfoStep = React.forwardRef(
5353
) => {
5454
const { isExpanded, step, userInputForm } = stepListItem;
5555
const [codeView, setCodeView] = useState<CodeView>(CodeView.JSON);
56-
const handleCodeViewChange = (newCodeView: CodeView) => {
57-
setCodeView(newCodeView);
58-
};
5956

6057
const { theme } = useOrchestratorTheme();
6158
const {
@@ -126,8 +123,10 @@ export const WfoStep = React.forwardRef(
126123
);
127124

128125
const handle = useCallback(
129-
(id: string) => handleCodeViewChange(id as CodeView),
130-
[handleCodeViewChange],
126+
(newCodeView: string) => {
127+
setCodeView(newCodeView as CodeView);
128+
},
129+
[setCodeView],
131130
);
132131

133132
return (

packages/orchestrator-ui-components/src/icons/heroicons/WfoCommandLine.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export const WfoCommandLineSvg: FC<WfoIconProps> = ({
2626
</svg>
2727
);
2828

29-
export const WfoCommandLine = WfoCommandLineSvg;
29+
export const WfoCommandLine = withWfoHeroIconsWrapper(WfoCommandLineSvg);

0 commit comments

Comments
 (0)