FarmBot/Farmbot-Web-App

View on GitHub
frontend/farm_designer/designer_panel.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function DesignerPanelHeader has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const DesignerPanelHeader = (props: DesignerPanelHeaderProps) => {
  const panelColor = props.panel ? TAB_COLOR[props.panel] : props.panelColor;
  const colorClass = props.colorClass || `${panelColor || PanelColor.gray}-panel`;
  const navigate = useNavigate();
  return <div className={`panel-header ${colorClass}`}
Severity: Minor
Found in frontend/farm_designer/designer_panel.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status