File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import * as React from "react" ;
21import { isEqual } from "lodash" ;
2+ import * as React from "react" ;
33import { connect } from "react-redux" ;
44import { actions } from "redux-router5" ;
55import { State as IRouterState } from "router5" ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import * as es from "react-intl/locale-data/es";
88import * as fr from "react-intl/locale-data/fr" ;
99import { connect } from "react-redux" ;
1010import { routeNodeSelector } from "redux-router5" ;
11-
1211import { cssRaw , cssRule , style } from "typestyle" ;
1312
1413import { Header } from "../components" ;
@@ -47,7 +46,7 @@ class App extends React.Component<any, any> {
4746 }
4847
4948 public render ( ) : JSX . Element {
50- const { route } = this . props ;
49+ const { route} = this . props ;
5150 const segment = route ? route . name . split ( "." ) [ 0 ] : undefined ;
5251 return (
5352 < IntlProvider locale = { this . props . languages . payload . locale } messages = { this . props . languages . payload . languageData } >
Original file line number Diff line number Diff line change 1- const appConfig = require ( "../config/main" ) ;
2-
31import * as e6p from "es6-promise" ;
42( e6p as any ) . polyfill ( ) ;
53import "isomorphic-fetch" ;
6-
74import * as React from "react" ;
85import * as ReactDOM from "react-dom" ;
96import { Provider } from "react-redux" ;
@@ -13,15 +10,15 @@ import {configureStore} from "./app/redux/configureStore";
1310import { configureRouter } from "./app/routes/configureRouter" ;
1411import rootSaga from "./app/sagas/rootSaga" ;
1512
13+ const appConfig = require ( "../config/main" ) ;
14+
1615const ReactHotLoader = appConfig . env !== "production"
1716 ? require ( "react-hot-loader" ) . AppContainer
1817 : ( { children } ) => React . Children . only ( children ) ;
1918
2019const router = configureRouter ( ) ;
21- const store = configureStore (
22- router ,
23- window . __INITIAL_STATE__
24- ) ;
20+ const store = configureStore ( router , window . __INITIAL_STATE__ ) ;
21+ router . start ( ) ;
2522store . runSaga ( rootSaga ) ;
2623
2724ReactDOM . render (
You can’t perform that action at this time.
0 commit comments