ant-design/ant-design

View on GitHub
components/_util/PurePanel.tsx

Summary

Maintainability
B
4 hrs
Test Coverage

Function genPurePanel has 60 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const genPurePanel = <ComponentProps extends BaseProps = BaseProps>(
  Component: any,
  defaultPrefixCls?: string,
  getDropdownCls?: null | ((prefixCls: string) => string),
  postProps?: (props: ComponentProps) => ComponentProps,
Severity: Major
Found in components/_util/PurePanel.tsx - About 2 hrs to fix

    Function PurePanel has 56 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const PurePanel: React.FC<WrapProps> = (props) => {
        const { prefixCls: customizePrefixCls, style } = props;
    
        const holderRef = React.useRef<HTMLDivElement>(null);
        const [popupHeight, setPopupHeight] = React.useState(0);
    Severity: Major
    Found in components/_util/PurePanel.tsx - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status