Skip to content

Commit

Permalink
chore: fix sonar and build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lordrip committed Feb 4, 2025
1 parent e7c6db0 commit a23565e
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 137 deletions.
7 changes: 3 additions & 4 deletions packages/ui/src/components/Icons/create-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function createIcon({
svgPath,
}: IconDefinition): ComponentClass<SVGIconProps> {
return class SVGIcon extends Component<SVGIconProps> {
static displayName = name;
static readonly displayName = name;

id = `icon-title-${currentId++}`;

Expand All @@ -47,10 +47,9 @@ export function createIcon({
className={classes}
viewBox={viewBox}
fill="currentColor"
aria-labelledby={hasTitle ? this.id : null}
aria-hidden={hasTitle ? null : true}
aria-labelledby={hasTitle ? this.id : undefined}
aria-hidden={hasTitle ? undefined : true}
transform={transform}
role="img"
width="1em"
height="1em"
{...(props as Omit<SVGProps<SVGElement>, 'ref'>)} // Lie.
Expand Down
1 change: 0 additions & 1 deletion packages/ui/src/components/Visualization/Canvas/Canvas.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Icon } from '@patternfly/react-core';
import { CatalogIcon } from '@patternfly/react-icons';
import {
Model,
Expand Down
Loading

0 comments on commit a23565e

Please sign in to comment.