airbnb/caravel

View on GitHub
superset-frontend/src/components/Icons/Icon.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function Icon has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const Icon = (props: IconProps) => {
  const { fileName, ...iconProps } = props;
  const [, setLoaded] = useState(false);
  const ImportedSVG = useRef<FC<SVGProps<SVGSVGElement>>>();
  const name = fileName.replace('_', '-');
Severity: Minor
Found in superset-frontend/src/components/Icons/Icon.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status