Fix eslint errors
This commit is contained in:
parent
856aab41ad
commit
8376f404e4
10 changed files with 44 additions and 46 deletions
|
|
@ -40,12 +40,12 @@ export type AppState = {
|
|||
};
|
||||
|
||||
/*
|
||||
const App = (props: AppProps) => {
|
||||
const topics = Array.isArray(props.config.topics) ?
|
||||
Object.assign({}, ...props.config.topics) : props.config.topics;
|
||||
const [mqttConnected, setMqttConnected] = useState(false);
|
||||
};
|
||||
*/
|
||||
*const App = (props: AppProps) => {
|
||||
* const topics = Array.isArray(props.config.topics) ?
|
||||
* Object.assign({}, ...props.config.topics) : props.config.topics;
|
||||
* const [mqttConnected, setMqttConnected] = useState(false);
|
||||
*};
|
||||
*/
|
||||
|
||||
class App extends React.PureComponent<AppProps & Classes, AppState> {
|
||||
controlMap: React.Node
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import filter from "lodash/filter";
|
|||
import reduce from "lodash/reduce";
|
||||
import MqttContext from "mqtt/context";
|
||||
import type { Controls, Control, UIControl, ControlUI } from "config/flowtypes";
|
||||
import { renderToString } from 'react-dom/server'
|
||||
import { renderToString } from "react-dom/server";
|
||||
|
||||
export type Point = [number, number];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue