diff --git a/src/ts/@overflow/app/index.tsx b/src/ts/@overflow/app/index.tsx index 2b8ab7b..e821529 100644 --- a/src/ts/@overflow/app/index.tsx +++ b/src/ts/@overflow/app/index.tsx @@ -3,7 +3,6 @@ import * as ReactDOM from 'react-dom'; import { fork } from 'redux-saga/effects'; import { Provider } from 'react-redux'; -import { Switch } from 'react-router'; import { ConnectedRouter } from 'react-router-redux'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import * as injectTapEventPlugin from 'react-tap-event-plugin'; @@ -14,6 +13,7 @@ import { store, sagaMiddleware, history } from './redux/store'; import sagas from './redux/saga'; import muiTheme from './theme/mui'; +import routes from './router'; injectTapEventPlugin(); @@ -40,13 +40,11 @@ function* app(): any { ReactDOM.render( - - - - - - - + + + {routes} + + , appContainer, ); diff --git a/src/ts/@overflow/app/router/index.tsx b/src/ts/@overflow/app/router/index.tsx index e69de29..70ee64a 100644 --- a/src/ts/@overflow/app/router/index.tsx +++ b/src/ts/@overflow/app/router/index.tsx @@ -0,0 +1,15 @@ +import * as React from 'react'; +import { Route, Switch } from 'react-router-dom'; + +import Signin from '../views/member/Signin'; + +const routes = ( + + + + + + +); + +export default routes; diff --git a/src/ts/@overflow/member/react/Signin.tsx b/src/ts/@overflow/member/react/Signin.tsx index 2775dc2..8ebfffb 100644 --- a/src/ts/@overflow/member/react/Signin.tsx +++ b/src/ts/@overflow/member/react/Signin.tsx @@ -11,7 +11,7 @@ import * as signinActions from '../redux/action/signin'; export function mapStateToProps(state: any): SigninProps { return { - isSignin: state.member.signin.isAuthenticated, + }; }