fixed error
This commit is contained in:
parent
b2e8306567
commit
3fcfeb6e43
|
@ -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 = (
|
|||
<Route exact path='/test14' component={Components} />
|
||||
|
||||
<Route exact path='/test21' component={Sensors} />*/}
|
||||
{/*<Route path='/signin' component={SignIn} />*/}
|
||||
{/*<Route path='/sensorList' component={SensorList} />*/}
|
||||
|
||||
</Switch>
|
||||
|
||||
|
|
|
@ -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<RouteComponentProps<object>, object> {
|
||||
@inject()
|
||||
private client: WebSocketRPC;
|
||||
|
||||
public constructor(props?: RouteComponentProps<object>, context?: object) {
|
||||
super(props, context);
|
||||
|
||||
let con = AppContext.get<WebSocketRPC>();
|
||||
}
|
||||
|
||||
public render(): JSX.Element {
|
||||
return (
|
||||
<SensorListContainer/>
|
||||
);
|
||||
}
|
||||
|
||||
private test(@inject() c: WebSocketRPC): void {
|
||||
console.log('');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export default SensorList;
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user