ing
This commit is contained in:
parent
0b43f86f59
commit
4004476cfe
|
@ -1,5 +1,5 @@
|
|||
import * as React from 'react';
|
||||
import { Route, Switch } from 'react-router-dom';
|
||||
import { Route, RouteProps, Switch } from 'react-router-dom';
|
||||
|
||||
import SignIn from '../views/member/SignIn';
|
||||
import SensorList from '../views/monitoring/sensor/SensorList';
|
||||
|
@ -15,11 +15,19 @@ import { PWChange } from '@overflow/member/react/components/PWChange';
|
|||
// import { Tree } from '@overflow/temp/react/components/commons/Tree';
|
||||
import { TableExampleSortable } from '@overflow/temp/react/components/TableExampleSortable';
|
||||
|
||||
import Home from '../views/Home';
|
||||
|
||||
interface AppRouter {
|
||||
interface AppRouter extends RouteProps {
|
||||
|
||||
}
|
||||
|
||||
const routeConfig: AppRouter[] = [
|
||||
{
|
||||
path: '/',
|
||||
component: Home,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
const routes = (
|
||||
<Switch>
|
||||
|
|
0
src/ts/@overflow/app/router/monitoring/index.tsx
Normal file
0
src/ts/@overflow/app/router/monitoring/index.tsx
Normal file
|
@ -0,0 +1,28 @@
|
|||
import * as React from 'react';
|
||||
import { RouteComponentProps } from 'react-router';
|
||||
|
||||
export interface Props {
|
||||
}
|
||||
|
||||
export interface State {
|
||||
}
|
||||
|
||||
|
||||
class Home extends React.Component<RouteComponentProps<Props>, State> {
|
||||
public constructor(props?: RouteComponentProps<Props>, context?: State) {
|
||||
super(props, context);
|
||||
|
||||
}
|
||||
|
||||
public render(): JSX.Element {
|
||||
return (
|
||||
<div>
|
||||
HOME
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
export default Home;
|
Loading…
Reference in New Issue
Block a user