frontend/farmware/farmware_forms.tsx
Function render
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render() {
const { farmware, env, dispatch, botOnline } = this.props;
const collapsed = (config: FarmwareConfig) =>
farmware.name == FarmwareName.MeasureSoilHeight
Function ConfigFields
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ConfigFields(props: ConfigFieldsProps): JSX.Element {
const { farmwareName, farmwareConfigs, getValue, userEnv } = props;
return <div className={"farmware-config-fields"}>
{farmwareConfigs.map(config => {
const configEnvName = getConfigEnvName(farmwareName, config.name);