fixed sensorlist

This commit is contained in:
snoop 2017-07-26 19:30:04 +09:00
parent 6bd41d7355
commit a44d4a0c73

View File

@ -1,6 +1,6 @@
import * as React from 'react'; import * as React from 'react';
import { Table, Button, Header, Container } from 'semantic-ui-react'; import { Table, Button, Header, Container } from 'semantic-ui-react';
import SensorDetailContainer from '../SensorDetail'; import { ListContainer } from '@overflow/commons/react/component/ListContainer';
import Probe from '@overflow/probe/api/model/Probe'; import Probe from '@overflow/probe/api/model/Probe';
import Sensor from '@overflow/sensor/api/model/Sensor'; import Sensor from '@overflow/sensor/api/model/Sensor';
@ -120,7 +120,8 @@ export class SensorList extends React.Component<SensorListProps, SensorListState
} }
public render(): JSX.Element { public render(): JSX.Element {
return (
let sensorList: JSX.Element = (
<Container fluid> <Container fluid>
<Table celled selectable striped> <Table celled selectable striped>
<Table.Header> <Table.Header>
@ -154,6 +155,14 @@ export class SensorList extends React.Component<SensorListProps, SensorListState
</Container> </Container>
); );
return (
<ListContainer
contents={sensorList}
data={this.data}
/>
);
} }
} }