reorganized file system

This commit is contained in:
bill bittner 2018-03-16 10:34:26 -07:00
parent 89c4b006c2
commit c23b6192f9
147 changed files with 61 additions and 61 deletions

View file

@ -2,7 +2,7 @@ import React from 'react';
import { Route, Switch } from 'react-router-dom';
import HomePage from 'pages/HomePage'; // or use the provided local homepage
import AboutPage from 'pages/AboutPage';
import LoginPage from 'containers/LoginPage';
import LoginPage from 'pages/LoginPage';
import ShowPage from 'pages/ShowPage';
import FourOhFourPage from 'containers/FourOhFourPage';

View file

@ -21,19 +21,20 @@ const sagaMiddleware = createSagaMiddleware();
const middleware = applyMiddleware(sagaMiddleware);
const reduxMiddleware = window.__REDUX_DEVTOOLS_EXTENSION__ ? compose(middleware, window.__REDUX_DEVTOOLS_EXTENSION__()) : middleware;
// create teh store
let store;
if (preloadedState) {
const SpeechClient = () => {
// create teh store
let store;
if (preloadedState) {
store = createStore(Reducer, preloadedState, reduxMiddleware);
} else {
} else {
store = createStore(Reducer, reduxMiddleware);
}
}
// run the saga middlweare
sagaMiddleware.run(rootSaga);
// run the saga middlweare
sagaMiddleware.run(rootSaga);
// render the app
hydrate(
// render the app
hydrate(
<Provider store={store}>
<BrowserRouter>
<GAListener>
@ -42,4 +43,7 @@ hydrate(
</BrowserRouter>
</Provider>,
document.getElementById('react-app')
);
);
};
module.exports = SpeechClient;

Some files were not shown because too many files have changed in this diff Show more