fixed sensor

This commit is contained in:
snoop 2017-07-26 18:59:27 +09:00
parent a70115d86a
commit 38ad6c583a
2 changed files with 0 additions and 3 deletions

View File

@ -88,8 +88,6 @@ export class SensorItemTree extends React.Component<SensorItemTreeProps, SensorI
elems.push( elems.push(
<List.Item key={key + 1} > <List.Item key={key + 1} >
<List.Icon name={this.state.categoryState[key] ? 'chevron up' : 'chevron down'} onClick={() => { <List.Icon name={this.state.categoryState[key] ? 'chevron up' : 'chevron down'} onClick={() => {
{/*let newPortState: Map<number, boolean> = new Map(this.state.portState);*/ }
let newCategoryState: Map<number, boolean> = _.clone(this.state.categoryState); let newCategoryState: Map<number, boolean> = _.clone(this.state.categoryState);
newCategoryState[key] = !newCategoryState[key]; newCategoryState[key] = !newCategoryState[key];
this.setState({ categoryState: newCategoryState }); this.setState({ categoryState: newCategoryState });

View File

@ -1,7 +1,6 @@
import * as React from 'react'; import * as React from 'react';
import { Button, Table, Label, Segment, Header, Container } from 'semantic-ui-react'; import { Button, Table, Label, Segment, Header, Container } from 'semantic-ui-react';
import { DetailContainer } from '@overflow/commons/react/component/DetailContainer'; import { DetailContainer } from '@overflow/commons/react/component/DetailContainer';
import { SensorItems } from './SensorItems';
import Sensor from '@overflow/sensor/api/model/Sensor'; import Sensor from '@overflow/sensor/api/model/Sensor';
import Probe from '@overflow/probe/api/model/Probe'; import Probe from '@overflow/probe/api/model/Probe';