locomotivecms/engine

View on GitHub
app/javascript/src/locomotive/editor/views/action_bar/index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

  render() {
    const { pageId, iframeLoaded, location } = this.props;
    const currentKey      = iframeLoaded ? location.pathname : 'startup';
    const slideDirection  = !iframeLoaded ? 'up' : (location.state || {}).slideDirection || 'up';
    const timeout         = slideDirection === 'none' ? { enter: 1, exit: 1 } : { enter: 150, exit: 100 };
Severity: Minor
Found in app/javascript/src/locomotive/editor/views/action_bar/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status