From 5dd9b8668caeff40adeac3952feec785210443fb Mon Sep 17 00:00:00 2001 From: insanity Date: Thu, 24 Aug 2017 17:07:34 +0900 Subject: [PATCH] sensor history --- src/ts/@overflow/app/views/layout/SensorDetailLayout.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ts/@overflow/app/views/layout/SensorDetailLayout.tsx b/src/ts/@overflow/app/views/layout/SensorDetailLayout.tsx index 721640f..157efa9 100644 --- a/src/ts/@overflow/app/views/layout/SensorDetailLayout.tsx +++ b/src/ts/@overflow/app/views/layout/SensorDetailLayout.tsx @@ -9,6 +9,7 @@ import SensorSetup from '../monitoring/sensor/Setup'; import SensorDetailInfo from '../monitoring/sensor/DetailInfo'; import SensorDetailItems from '../monitoring/sensor/DetailItems'; import SensorItemTree from '../monitoring/sensor/ItemTree'; +import HistoryView from '../../views/history/List'; export interface Props extends RouteComponentProps { } @@ -27,7 +28,7 @@ class SensorDetailLayout extends React.Component { public render(): JSX.Element { const sub = [ - { + { 'name': 'Info', 'path': this.state.currUrl, }, @@ -39,6 +40,10 @@ class SensorDetailLayout extends React.Component { 'name': 'Setup', 'path': this.state.currUrl + '/setup', }, + { + 'name': 'History', + 'path': this.state.currUrl + '/history', + }, ]; return ( @@ -56,6 +61,7 @@ class SensorDetailLayout extends React.Component { +