speakyourcode/grafana-button-panel

View on GitHub

Showing 1 of 3 total issues

Function renderButtons has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const renderButtons = (buttons: ButtonOptions[]) => {
    return buttons.map((b: ButtonOptions, index: number) => {
      const text = b.text || 'Button';
      return (
        <Button
Severity: Minor
Found in src/buttonPanel.tsx - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language