src/command-palette.js
File command-palette.js
has 366 lines of code (exceeds 250 allowed). Consider refactoring. Wontfix
Wontfix
/* eslint-disable react/jsx-no-bind */
import React from "react";
import ReactModal from "react-modal";
import PropTypes from "prop-types";
CommandPalette
has 21 functions (exceeds 20 allowed). Consider refactoring. Open
Open
class CommandPalette extends React.Component {
constructor(props) {
super(props);
const { defaultInputValue } = this.props;
Function renderAutoSuggest
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
renderAutoSuggest() {
const { suggestions, value, isLoading } = this.state;
const { theme, getSuggestionValue } = this.props;
const {
maxDisplayed,
Function renderModalCommandPalette
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Invalid
Invalid
renderModalCommandPalette() {
const { showModal } = this.state;
const {
trigger,
theme,
Function constructor
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
constructor(props) {
super(props);
const { defaultInputValue } = this.props;