From 3fcfeb6e4389f3f0c72471fbfa00945fddcb0899 Mon Sep 17 00:00:00 2001 From: snoop Date: Thu, 20 Jul 2017 17:34:12 +0900 Subject: [PATCH] fixed error --- src/ts/@overflow/app/router/index.tsx | 3 +- .../@overflow/app/views/sensor/SensorList.tsx | 30 +++++++++++++++++++ .../probe/react/components/ProbeDetail.tsx | 2 +- 3 files changed, 33 insertions(+), 2 deletions(-) diff --git a/src/ts/@overflow/app/router/index.tsx b/src/ts/@overflow/app/router/index.tsx index b56b472..0285830 100644 --- a/src/ts/@overflow/app/router/index.tsx +++ b/src/ts/@overflow/app/router/index.tsx @@ -2,6 +2,7 @@ import * as React from 'react'; import { Route, Switch } from 'react-router-dom'; import SignIn from '../views/member/SignIn'; +import SensorList from '../views/sensor/SensorList'; import { SignUp } from '@overflow/member/react/components/SignUp'; // import { SignIn } from '@overflow/member/react/components/SignIn';; @@ -29,7 +30,7 @@ const routes = ( */} - {/**/} + {/**/} diff --git a/src/ts/@overflow/app/views/sensor/SensorList.tsx b/src/ts/@overflow/app/views/sensor/SensorList.tsx index e69de29..e0f4c5f 100644 --- a/src/ts/@overflow/app/views/sensor/SensorList.tsx +++ b/src/ts/@overflow/app/views/sensor/SensorList.tsx @@ -0,0 +1,30 @@ +import * as React from 'react'; +import { RouteComponentProps } from 'react-router'; +import SensorListContainer from '@overflow/sensor/react/SensorList'; +import WebSocketRPC from '@overflow/commons/websocket/WebSocketRPC'; +import AppContext from '@overflow/commons/context'; +import inject from '@overflow/commons/context/decorator/inject'; + +class SensorList extends React.Component, object> { + @inject() + private client: WebSocketRPC; + + public constructor(props?: RouteComponentProps, context?: object) { + super(props, context); + + let con = AppContext.get(); + } + + public render(): JSX.Element { + return ( + + ); + } + + private test(@inject() c: WebSocketRPC): void { + console.log(''); + } +} + + +export default SensorList; diff --git a/src/ts/@overflow/probe/react/components/ProbeDetail.tsx b/src/ts/@overflow/probe/react/components/ProbeDetail.tsx index 83fd171..9acd4b0 100644 --- a/src/ts/@overflow/probe/react/components/ProbeDetail.tsx +++ b/src/ts/@overflow/probe/react/components/ProbeDetail.tsx @@ -6,7 +6,7 @@ import { Button, Header, Container, } from 'semantic-ui-react'; -import { TargetTable } from './Targets'; +import { TargetTable } from '@overflow/temp/react/components/Targets'; import Probe from '@overflow/probe/api/model/Probe'; export interface Props {