frontend/sensors/sensor_readings/time_period_selection.tsx
Function TimePeriodSelection
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
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">