From 4004476cfe71a45317bcd9932d926bb116d5c460 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 20 Jul 2017 19:30:34 +0900 Subject: [PATCH] ing --- src/ts/@overflow/app/router/index.tsx | 12 ++++++-- .../@overflow/app/router/monitoring/index.tsx | 0 src/ts/@overflow/app/views/Home.tsx | 28 +++++++++++++++++++ 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 src/ts/@overflow/app/router/monitoring/index.tsx 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;