|
@@ -24,14 +24,14 @@ import match from './match'
|
|
|
/** The root reducer is combined from all sub-module reducers */
|
|
|
const rootReducer = combineReducers({
|
|
|
player: player.reducer,
|
|
|
- match: match.reducer,
|
|
|
+ match: match.reducer
|
|
|
})
|
|
|
console.log('Root reducer:', rootReducer)
|
|
|
|
|
|
/** The default state is combined from all sub-module states */
|
|
|
const defaultState = {
|
|
|
player: player.state,
|
|
|
- match: match.state,
|
|
|
+ match: match.state
|
|
|
}
|
|
|
console.log('Default state:', defaultState)
|
|
|
|
|
@@ -50,9 +50,9 @@ console.log('history:', history)
|
|
|
*/
|
|
|
|
|
|
/** Collect the action creators from all modules in actionCreators */
|
|
|
-const actionCreators = {
|
|
|
+const actionCreators = {
|
|
|
player: player.actions,
|
|
|
- match: match.actions,
|
|
|
+ match: match.actions
|
|
|
}
|
|
|
|
|
|
/** Creates a function */
|
|
@@ -77,7 +77,6 @@ function mapDispatchToProps (dispatch) {
|
|
|
|
|
|
const App = connect(mapStateToProps, mapDispatchToProps)(Main)
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* React-Router Section
|
|
|
**/
|
|
@@ -102,6 +101,7 @@ const router = (
|
|
|
</Provider>
|
|
|
)
|
|
|
*/
|
|
|
+
|
|
|
const provider = (
|
|
|
<Provider store={store}>
|
|
|
<App />
|
|
@@ -114,4 +114,4 @@ const provider = (
|
|
|
ReactDOM.render(
|
|
|
provider,
|
|
|
document.getElementById('root')
|
|
|
-)
|
|
|
+)
|