remove unused prop

pull/1170/head^2
gabrielburnworth 2019-04-26 09:34:36 -07:00
parent 85a6e0ceb8
commit e038d0a1a2
6 changed files with 4 additions and 15 deletions

View File

@ -1,6 +1,5 @@
import * as React from "react";
import { DropDownItem, Row, Col, FBSelect } from "../../../ui/index";
import {
CameraSelectionProps, CameraSelectionState
} from "./interfaces";
@ -69,7 +68,6 @@ export class CameraSelection
allowEmpty={false}
list={CAMERA_CHOICES()}
selectedItem={this.selectedCamera()}
placeholder="Select a camera..."
onChange={this.sendOffConfig}
extraClass={this.props.botOnline ? "" : "disabled"} />
</div>

View File

@ -1,5 +1,4 @@
import * as React from "react";
import {
BlurableInput,
Row, Col,
@ -69,8 +68,7 @@ export class WeedDetectorConfig extends React.Component<SettingsMenuProps, {}> {
<FBSelect
onChange={this.setDDI("CAMERA_CALIBRATION_calibration_along_axis")}
selectedItem={this.find("CAMERA_CALIBRATION_calibration_along_axis")}
list={CALIBRATION_DROPDOWNS}
placeholder="Select..." />
list={CALIBRATION_DROPDOWNS} />
<Row>
<Col xs={6}>
<this.NumberBox
@ -89,8 +87,7 @@ export class WeedDetectorConfig extends React.Component<SettingsMenuProps, {}> {
<FBSelect
list={ORIGIN_DROPDOWNS}
onChange={this.setDDI("CAMERA_CALIBRATION_image_bot_origin_location")}
selectedItem={this.find("CAMERA_CALIBRATION_image_bot_origin_location")}
placeholder="Select..." />
selectedItem={this.find("CAMERA_CALIBRATION_image_bot_origin_location")} />
<Row>
<Col xs={6}>
<this.NumberBox

View File

@ -45,8 +45,7 @@ export class BulkScheduler extends React.Component<BulkEditorProps, {}> {
<label>{t("Sequence")}</label>
<FBSelect onChange={this.onChange}
selectedItem={this.selected()}
list={this.all()}
placeholder="Pick a sequence (or save a new one)" />
list={this.all()} />
</div>
</Col>

View File

@ -40,6 +40,5 @@ export function SequenceSelectBox(props: SequenceSelectBoxProps) {
return <FBSelect
onChange={props.onChange}
selectedItem={selectedSequence()}
list={sequenceDropDownList()}
placeholder="Pick a sequence (or save a new one)" />;
list={sequenceDropDownList()} />;
}

View File

@ -1,6 +1,5 @@
import * as React from "react";
import { ThenElseParams, seqDropDown, IfBlockDropDownHandler } from "./index";
import { Row, Col, FBSelect } from "../../../ui";
import { LocalsList } from "../../locals_list/locals_list";
import { AllowedVariableNodes } from "../../locals_list/locals_list_support";
@ -21,7 +20,6 @@ export function ThenElse(props: ThenElseParams) {
key={JSON.stringify(props.currentSequence)}
allowEmpty={true}
list={seqDropDown(props.resources)}
placeholder="Sequence..."
onChange={onChange}
selectedItem={selectedItem()} />
{!!calledSequenceVariableData &&

View File

@ -12,8 +12,6 @@ export interface FBSelectProps {
list: DropDownItem[];
/** Allow user to select no value. */
allowEmpty?: boolean;
/** Text shown before user selection. */
placeholder?: string | undefined;
/** Extra class names to add. */
extraClass?: string;
/** Custom label for NULL_CHOICE instead of "None". */