FarmBot/Farmbot-Web-App

View on GitHub
frontend/sensors/sensor_readings/time_period_selection.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function TimePeriodSelection has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const TimePeriodSelection = (props: TimePeriodSelectionProps) => {
  const { timePeriod, endDate, showPreviousPeriod,
    setEndDate, setPeriod, togglePrevious } = props;
  return <div className="sensor-history-time-selection">
    <Row className="grid-3-col">
Severity: Minor
Found in frontend/sensors/sensor_readings/time_period_selection.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status