From 2082914c46645aa6c9dcbbb74ee5c3c220ee79a5 Mon Sep 17 00:00:00 2001 From: geek Date: Wed, 26 Jul 2017 16:02:48 +0900 Subject: [PATCH] target --- package.json | 2 ++ .../@overflow/app/views/layout/TargetDetailLayout.tsx | 10 +++++----- .../discovery/react/components/DiscoveryTable.tsx | 9 ++++++++- src/ts/@overflow/target/react/TargetDetail.tsx | 2 +- .../@overflow/target/react/components/TargetDetail.tsx | 2 +- 5 files changed, 17 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index a83069b..4fa6faa 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "@types/auth0-lock": "^10.16.0", "@types/history": "^4.6.0", "@types/jest": "^19.2.4", + "@types/lodash": "^4.14.69", "@types/prop-types": "^15.5.1", "@types/react": "^15.0.38", "@types/react-addons-test-utils": "^0.14.19", @@ -72,6 +73,7 @@ "history": "^4.6.3", "immutable": "^3.8.1", "inversify": "^4.2.0", + "lodash": "^4.17.4", "prop-types": "^15.5.10", "react": "^15.6.1", "react-dom": "^15.6.1", diff --git a/src/ts/@overflow/app/views/layout/TargetDetailLayout.tsx b/src/ts/@overflow/app/views/layout/TargetDetailLayout.tsx index 3acdc0b..7860de6 100644 --- a/src/ts/@overflow/app/views/layout/TargetDetailLayout.tsx +++ b/src/ts/@overflow/app/views/layout/TargetDetailLayout.tsx @@ -7,7 +7,7 @@ import TitleBarContainer from './TitleBarContainer'; import LeftMenu from './LeftMenu'; import TargetDetail from '../../views/infrastructure/target/Detail'; -import ProbeHistory from '../../views/monitoring/probe/History'; +import SensorList from '../../views/monitoring/sensor/List'; export interface Props extends RouteComponentProps { @@ -30,11 +30,11 @@ export class TargetDetailLayout extends React.Component { const sub = [ { 'name': 'Info', - 'path': this.state.currUrl + 'info', + 'path': this.state.currUrl + '/info', }, { - 'name': 'History', - 'path': this.state.currUrl + 'history', + 'name': 'Sensor', + 'path': this.state.currUrl + '/sensor', }, ]; return ( @@ -45,7 +45,7 @@ export class TargetDetailLayout extends React.Component { - +