components/_util/PurePanel.tsx
Function genPurePanel
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const genPurePanel = <ComponentProps extends BaseProps = BaseProps>(
Component: any,
defaultPrefixCls?: string,
getDropdownCls?: null | ((prefixCls: string) => string),
postProps?: (props: ComponentProps) => ComponentProps,
Function PurePanel
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const PurePanel: React.FC<WrapProps> = (props) => {
const { prefixCls: customizePrefixCls, style } = props;
const holderRef = React.useRef<HTMLDivElement>(null);
const [popupHeight, setPopupHeight] = React.useState(0);