Skip to content

Commit

Permalink
fix(lint): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mmelko committed Sep 12, 2024
1 parent 44d34f4 commit 8184926
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
2 changes: 0 additions & 2 deletions packages/ui/src/components/Form/bean/BeanReferenceField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,13 @@ const BeanReferenceFieldComponent = (props: BeanReferenceFieldProps) => {

const onSelect = useCallback(
(_event: React.MouseEvent<Element, MouseEvent> | undefined, value: string | number | undefined) => {
// eslint-disable-next-line no-console
if (value) {
if (value === createNewWithNameValue) {
setIsNewBeanModalOpen(true);
} else if (value === createNewValue) {
setInputValue('');
setIsNewBeanModalOpen(true);
} else {
// eslint-disable-next-line no-console
setInputValue(value as string);
setFilterValue('');
setSelected(value as string);
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/components/Form/bean/NewBeanModal.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('NewBeanModal', () => {
it('should render', async () => {
const mockOnCreate = jest.fn();
const mockOnCancel = jest.fn();
// eslint-disable-next-line @typescript-eslint/no-explicit-any

render(
<NewBeanModal
beanSchema={beanSchema}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.custom-nest-field {
/* stylelint-disable-next-line selector-class-pattern */
border-radius: 15px;

/* stylelint-disable selector-class-pattern */
.pf-v5-c-card__body {
display: grid;
gap: var(--pf-v5-c-form--GridGap);
Expand Down
11 changes: 4 additions & 7 deletions packages/ui/src/components/Visualization/Canvas/Canvas.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#topology-resize-panel {

.pf-v5-c-drawer__splitter::after {
border:none;

}
}
/* stylelint-disable-next-line selector-class-pattern */
#topology-resize-panel .pf-v5-c-drawer__splitter::after {
border: none;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
position: absolute;
height: 100%;
}

/* stylelint-disable-next-line selector-class-pattern */
.pf-v5-c-drawer__splitter pf-m-vertical {
border:none;
border: none;
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const CollapseButton: FunctionComponent<CollapseButtonProps> = ({
['data-testid']: dataTestId,
onCollapseChange,
}) => {
const onClick: MouseEventHandler<HTMLButtonElement> & MouseEventHandler<HTMLDivElement> = (event) => {
const onClick: MouseEventHandler<HTMLButtonElement> & MouseEventHandler<HTMLDivElement> = (event) => {
event.stopPropagation();
onCollapseChange?.(element, !element.isCollapsed());
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
border-radius: 50px;
cursor: pointer;
margin-right: 5px;

&:hover {
border-color: var(--pf-v5-global--primary-color--light-100);
background-color: var(--pf-v5-global--BackgroundColor--200);
Expand All @@ -43,7 +44,6 @@
border-radius: var(--custom-group--BorderRadius);
border: var(--custom-group--BorderSize) solid var(--custom-group--BorderColor);


&__title {
display: flex;
align-items: center;
Expand Down

0 comments on commit 8184926

Please sign in to comment.