app/javascript/src/locomotive/editor/views/action_bar/index.js
Function render
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
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 };