Linter fixes
parent
8b5c0720fa
commit
02fbf54896
|
@ -3,7 +3,6 @@ import { Widget, WidgetHeader, WidgetBody, Row, Col } from "../../ui";
|
|||
import { Content } from "../../constants";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
|
||||
|
||||
export function ExportAccountPanel(props: { onClick: () => void }) {
|
||||
return <Widget>
|
||||
<WidgetHeader title={t("Export Account Data")} />
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import * as React from "react";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
|
||||
|
||||
interface SPTTProps {
|
||||
tooltip?: string | undefined;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@ import { bitArray } from "../../util";
|
|||
import { TRUTH_TABLE } from "./truth_table";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
|
||||
|
||||
export type DiagnosisName =
|
||||
| "userAPI"
|
||||
| "userMQTT"
|
||||
|
|
|
@ -7,7 +7,6 @@ import { TaggedFarmEvent } from "farmbot";
|
|||
import { EditFEForm } from "./edit_fe_form";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
|
||||
|
||||
@connect(mapStateToPropsAddEdit)
|
||||
export class EditFarmEvent extends React.Component<AddEditFarmEventProps, {}> {
|
||||
redirect() {
|
||||
|
|
|
@ -2,7 +2,6 @@ import * as React from "react";
|
|||
import { Popover, Position } from "@blueprintjs/core";
|
||||
import { t } from "../../../i18next_wrapper";
|
||||
|
||||
|
||||
export interface LayerToggleProps {
|
||||
label: string;
|
||||
value: boolean | undefined;
|
||||
|
|
|
@ -6,7 +6,6 @@ import {
|
|||
import { Content } from "../../constants";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
|
||||
|
||||
/** A stripped down version of OFSearchResult */
|
||||
interface Result {
|
||||
crop: {
|
||||
|
|
|
@ -5,7 +5,6 @@ import {
|
|||
} from "farmbot";
|
||||
import { t } from "../i18next_wrapper";
|
||||
|
||||
|
||||
const addMinorAndPatchZeros = (version: string | undefined): string =>
|
||||
version ? ">=" + version + ".0.0" : "";
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ import * as React from "react";
|
|||
import { Col, Widget, WidgetHeader, WidgetBody, BlurableInput, Row } from "../ui/index";
|
||||
import { t } from "../i18next_wrapper";
|
||||
|
||||
|
||||
export interface ForgotPasswordProps {
|
||||
onGoBack(e: React.MouseEvent<HTMLButtonElement>): void;
|
||||
onSubmit(e: React.FormEvent<HTMLFormElement>): void;
|
||||
|
|
|
@ -2,7 +2,6 @@ import * as React from "react";
|
|||
import { WidgetBody, Row } from "../ui/index";
|
||||
import { t } from "../i18next_wrapper";
|
||||
|
||||
|
||||
export function ResendPanelBody(props: { onClick(): void; }) {
|
||||
return <WidgetBody>
|
||||
<form>
|
||||
|
|
|
@ -3,7 +3,6 @@ import { WeekRowProps, DayProps, DAYS } from "./interfaces";
|
|||
import { toggleDay } from "./actions";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
|
||||
|
||||
export function WeekRow({ index, dispatch, week }: WeekRowProps) {
|
||||
return <div className="week-row">
|
||||
<label className="week-label">{t("Week")} {index + 1}</label>
|
||||
|
|
|
@ -8,7 +8,6 @@ import {
|
|||
import { Content } from "../../constants";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
|
||||
|
||||
export function RegimenEditor(props: RegimenEditorProps) {
|
||||
const { current, dispatch, calendar } = props;
|
||||
const regimen = current;
|
||||
|
|
|
@ -8,7 +8,6 @@ import {
|
|||
import { Content } from "../constants";
|
||||
import { t } from "../i18next_wrapper";
|
||||
|
||||
|
||||
export class SequenceEditorMiddle
|
||||
extends React.Component<SequenceEditorMiddleProps, {}> {
|
||||
render() {
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import { DropDownItem } from "../../../ui";
|
||||
import { t } from "../../../i18next_wrapper";
|
||||
|
||||
|
||||
export const MOUNTED_TO = t("Mounted to:");
|
||||
|
||||
export const DISMOUNT: DropDownItem = { label: t("Not Mounted"), value: 0 };
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
import {
|
||||
selectAllSavedPeripherals,
|
||||
selectAllSavedSensors
|
||||
|
|
|
@ -5,7 +5,6 @@ import { StepWrapper, StepHeader, StepContent } from "../step_ui/index";
|
|||
import { StepRadio } from "../step_ui/step_radio";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
|
||||
|
||||
export function TileCalibrate(props: StepParams) {
|
||||
const { dispatch, currentStep, index, currentSequence } = props;
|
||||
const className = "calibrate-step";
|
||||
|
|
|
@ -5,7 +5,6 @@ import { StepWrapper, StepHeader, StepContent } from "../step_ui/index";
|
|||
import { StepRadio } from "../step_ui/step_radio";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
|
||||
|
||||
export function TileSetZero(props: StepParams) {
|
||||
const { dispatch, currentStep, index, currentSequence } = props;
|
||||
const className = "set-zero-step";
|
||||
|
|
|
@ -2,7 +2,6 @@ import * as React from "react";
|
|||
import { Col, Row } from "../../ui";
|
||||
import { t } from "../../i18next_wrapper";
|
||||
|
||||
|
||||
export function ToolBayHeader() {
|
||||
return <Row>
|
||||
<Col xs={1}>
|
||||
|
|
|
@ -2,7 +2,6 @@ import * as React from "react";
|
|||
import { Col, ToolTip, DocSlug } from ".";
|
||||
import { t } from "../i18next_wrapper";
|
||||
|
||||
|
||||
interface CenterProps {
|
||||
children?: React.ReactNode;
|
||||
className: string;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import * as React from "react";
|
||||
import { t } from "../i18next_wrapper";
|
||||
|
||||
|
||||
export enum EmptyStateGraphic {
|
||||
plants = "plants",
|
||||
crops = "crops",
|
||||
|
|
|
@ -2,7 +2,6 @@ import * as React from "react";
|
|||
import { defensiveClone } from "../util";
|
||||
import { t } from "../i18next_wrapper";
|
||||
|
||||
|
||||
type ImgTag = React.HTMLProps<HTMLImageElement>;
|
||||
|
||||
interface Props extends ImgTag {
|
||||
|
|
|
@ -2,7 +2,6 @@ import * as React from "react";
|
|||
import { Col, ToolTip } from ".";
|
||||
import { t } from "../i18next_wrapper";
|
||||
|
||||
|
||||
interface LeftPanelProps {
|
||||
children?: React.ReactNode;
|
||||
className: string;
|
||||
|
|
|
@ -2,7 +2,6 @@ import * as React from "react";
|
|||
import { Col, ToolTip } from ".";
|
||||
import { t } from "../i18next_wrapper";
|
||||
|
||||
|
||||
interface RightPanelProps {
|
||||
children?: React.ReactNode;
|
||||
className: string;
|
||||
|
|
Loading…
Reference in New Issue