FarmBot/Farmbot-Web-App

View on GitHub
frontend/three_d_garden/button.tsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function PresetButton has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const PresetButton = (props: PresetButtonProps) => {
  const { preset, choosePreset, hovered, setHovered, startPosition, index } = props;
  const btnHeight = 50;
  const btnZ = 0;
  const textZ = btnHeight / 2 + 1;
Severity: Major
Found in frontend/three_d_garden/button.tsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status