ant-design/ant-design

View on GitHub
.dumi/theme/builtins/ImagePreview/index.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function ImagePreview has 73 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const ImagePreview: React.FC<React.PropsWithChildren<ImagePreviewProps>> = (props) => {
  const { children, className: rootClassName, pure } = props;
  const imgs = toArray(children).filter((ele) => ele.type === 'img');

  const imgsMeta = imgs.map<Partial<MateType>>((img) => {
Severity: Major
Found in .dumi/theme/builtins/ImagePreview/index.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status