Skip to content

Commit

Permalink
wip: fixing linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Evangelos Skopelitis <[email protected]>
  • Loading branch information
skoeva committed Jun 27, 2024
1 parent e958094 commit 2af16dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/common/CreateResourceButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function CreateResourceButton(props: CreateResourceButtonProps) {
throw msg;
}
});
},
}
);
};

Expand Down Expand Up @@ -167,7 +167,7 @@ export function CreateResourceButton(props: CreateResourceButtonProps) {
newItemName: resourceNames.join(','),
}),
cancelUrl,
}),
})
);

dispatchCreateEvent({
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/common/Resource/EditorDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function EditorDialog(props: EditorDialogProps) {
const codeRef = React.useRef(code);
const lastCodeCheckHandler = React.useRef(0);
const previousVersionRef = React.useRef(
isKubeObjectIsh(item) ? item?.metadata?.resourceVersion || '' : '',
isKubeObjectIsh(item) ? item?.metadata?.resourceVersion || '' : ''
);
const [error, setError] = React.useState('');
const [docSpecs, setDocSpecs] = React.useState<
Expand Down Expand Up @@ -402,7 +402,7 @@ export default function EditorDialog(props: EditorDialogProps) {
onConfirm={onUndo}
confirmTitle={t('translation|Are you sure?')}
confirmDescription={t(
'This will discard your changes in the editor. Do you want to proceed?',
'This will discard your changes in the editor. Do you want to proceed?'
)}
// @todo: aria-controls should point to the textarea id
>
Expand Down

0 comments on commit 2af16dd

Please sign in to comment.