You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
933 B
34 lines
933 B
import { createStore, combineReducers, applyMiddleware } from 'redux'
|
|
import { AppState } from '../types'
|
|
|
|
import authentication from '../reducers/authentication'
|
|
import composer from '../reducers/composer'
|
|
import config from '../reducers/config'
|
|
import entities from '../reducers/entities'
|
|
import forms from '../reducers/forms'
|
|
import lists from '../reducers/lists'
|
|
import notifications from '../reducers/notifications'
|
|
import registration from '../reducers/registration'
|
|
import requests from '../reducers/requests'
|
|
import theme from '../reducers/theme'
|
|
|
|
import logger from 'redux-logger'
|
|
import thunk from 'redux-thunk'
|
|
|
|
const store = createStore(
|
|
combineReducers<AppState>({
|
|
authentication,
|
|
composer,
|
|
config,
|
|
entities,
|
|
forms,
|
|
lists,
|
|
notifications,
|
|
registration,
|
|
requests,
|
|
theme,
|
|
}),
|
|
applyMiddleware(thunk, logger)
|
|
)
|
|
|
|
export default store
|