fixed sensor

This commit is contained in:
snoop 2017-07-26 18:23:18 +09:00
parent 7a7f500185
commit a70115d86a
3 changed files with 3 additions and 4 deletions

View File

@ -29,7 +29,7 @@ class SensorDetailLayout extends React.Component<Props, State> {
const sub = [ const sub = [
{ {
'name': 'Info', 'name': 'Info',
'path': this.state.currUrl + '/info', 'path': this.state.currUrl,
}, },
{ {
'name': 'Items', 'name': 'Items',

View File

@ -38,7 +38,7 @@ export class SensorDetailInfo extends React.Component<SensorDetailInfoProps, Sen
} }
public handleBack(event: any, data: any): void { public handleBack(event: any, data: any): void {
this.props.onBack(); // this.props.onBack();
} }
public componentWillMount(): void { public componentWillMount(): void {
@ -57,7 +57,7 @@ export class SensorDetailInfo extends React.Component<SensorDetailInfoProps, Sen
public render(): JSX.Element { public render(): JSX.Element {
return ( return (
<Container fluid> <Container fluid>
<Header as='h3' dividing>Sensor Details</Header>
<Table celled> <Table celled>
<Table.Body> <Table.Body>

View File

@ -122,7 +122,6 @@ export class SensorList extends React.Component<SensorListProps, SensorListState
public render(): JSX.Element { public render(): JSX.Element {
return ( return (
<Container fluid> <Container fluid>
<Header as='h3' dividing>Sensors</Header>
<Table celled selectable striped> <Table celled selectable striped>
<Table.Header> <Table.Header>
<Table.Row> <Table.Row>