Remove legacy `any` usage (typings have been updated)
parent
2ad5f8ea55
commit
0af4602aa4
|
@ -45,7 +45,6 @@ You will need the following:
|
|||
0. `rake db:create:all db:migrate db:seed`
|
||||
0. (optional) Verify installation with `RAILS_ENV=test rake db:create db:migrate && rspec spec` (API) and `npm run test` (Frontend).
|
||||
0. Start server with `npm run dev`. Make sure you set an `MQTT_HOST` entry in `application.yml` pointing to the IP address or domain of the (soon-to-be-installed) MQTT server. You will need to set that up next.
|
||||
0. Now that the API server is running, [provision an MQTT server](https://github.com/FarmBot/mqtt-gateway).
|
||||
0. Open [localhost:3000](http://localhost:3000).
|
||||
0. Although you can now try things out in your browser, you will still need to [provision an MQTT server](https://github.com/FarmBot/mqtt-gateway) before you can control a FarmBot.
|
||||
0. [Raise an issue](https://github.com/FarmBot/Farmbot-Web-App/issues/new?title=Installation%20Failure) if you hit problems with any of these steps. *We can't fix issues we don't know about.*
|
||||
|
|
|
@ -59,8 +59,6 @@ export let OsUpdateButton = ({ bot }: BotProp) => {
|
|||
<ToggleButton toggleValue={toggleVal}
|
||||
toggleAction={() => {
|
||||
let os_auto_update = !osUpdateBool ? 1 : 0;
|
||||
// TODO: This no longer needs to be a thunk
|
||||
// since it does not change redux state.
|
||||
updateConfig({ os_auto_update })(noop);
|
||||
}} />
|
||||
</Col>
|
||||
|
|
|
@ -19,21 +19,21 @@ export class FarmbotColorPicker extends React.Component<FarmbotPickerProps, {}>
|
|||
}
|
||||
|
||||
hueCSS = (): React.CSSProperties => {
|
||||
// TODO: Investigate if this is a bug with our code or @types/react:
|
||||
// CC @Chris
|
||||
let position: any = "relative";
|
||||
let width = "100%";
|
||||
let paddingBottom = "10%";
|
||||
let overflow: any = "hidden";
|
||||
return { position, width, paddingBottom, overflow };
|
||||
return {
|
||||
position: "relative",
|
||||
width: "100%",
|
||||
paddingBottom: "10%",
|
||||
overflow: "hidden"
|
||||
};
|
||||
}
|
||||
|
||||
saturationCSS = (): React.CSSProperties => {
|
||||
let position: any = "relative";
|
||||
let width = "100%";
|
||||
let paddingBottom = "35%";
|
||||
let overflow: any = "hidden";
|
||||
return { position, width, paddingBottom, overflow };
|
||||
return {
|
||||
position: "relative",
|
||||
width: "100%",
|
||||
paddingBottom: "35%",
|
||||
overflow: "hidden"
|
||||
};
|
||||
}
|
||||
|
||||
hueboxCSS = (): React.CSSProperties => {
|
||||
|
@ -79,7 +79,7 @@ export class FarmbotColorPicker extends React.Component<FarmbotPickerProps, {}>
|
|||
<div style={{ width: "100%", paddingBottom: "15%" }} />
|
||||
<div style={this.hueCSS()}>
|
||||
<Hue
|
||||
{...dontTouchThis as any}
|
||||
{...dontTouchThis}
|
||||
pointer={this.customPointer}
|
||||
onChange={_.noop} />
|
||||
<div style={this.hueboxCSS()} />
|
||||
|
@ -87,7 +87,7 @@ export class FarmbotColorPicker extends React.Component<FarmbotPickerProps, {}>
|
|||
<div style={{ width: "100%", paddingBottom: "2%" }} />
|
||||
<div style={this.saturationCSS()}>
|
||||
<Saturation
|
||||
{...dontTouchThis as any}
|
||||
{...dontTouchThis}
|
||||
pointer={this.customPointer}
|
||||
onChange={_.noop} />
|
||||
<div style={this.saturationboxCSS()} />
|
||||
|
|
Loading…
Reference in New Issue