bokuweb/react-elastic-modal

View on GitHub

Showing 2 of 2 total issues

Function render has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  render() {
    const { children, isOpen, onRequestClose, modal, overlay } = this.props;
    const { scale, opacity, width, height } = this.state;
    const commonStyles = {
      transform: `scale3d(${scale}, ${scale}, 1)`,
Severity: Minor
Found in src/index.js - About 1 hr to fix

    Function renderPath has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      renderPath() {
        if (!this.state.isMount) return null;
        const { width, height, top, right, bottom, left } = this.state;
        const x0 = width * svgMarginRatio;
        const y0 = height * svgMarginRatio;
    Severity: Minor
    Found in src/index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language