diff --git a/src/ts/@overflow/app/router/index.tsx b/src/ts/@overflow/app/router/index.tsx index 5cef490..47c922e 100644 --- a/src/ts/@overflow/app/router/index.tsx +++ b/src/ts/@overflow/app/router/index.tsx @@ -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 = ( diff --git a/src/ts/@overflow/app/router/monitoring/index.tsx b/src/ts/@overflow/app/router/monitoring/index.tsx new file mode 100644 index 0000000..e69de29 diff --git a/src/ts/@overflow/app/views/Home.tsx b/src/ts/@overflow/app/views/Home.tsx index e69de29..64053c8 100644 --- a/src/ts/@overflow/app/views/Home.tsx +++ b/src/ts/@overflow/app/views/Home.tsx @@ -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, State> { + public constructor(props?: RouteComponentProps, context?: State) { + super(props, context); + + } + + public render(): JSX.Element { + return ( +
+ HOME +
+ ); + } + +} + + +export default Home;