frontend/farm_designer/designer_panel.tsx
Function DesignerPanelHeader
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
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}`}