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
921 B
34 lines
921 B
import { createStore, combineReducers, applyMiddleware } from 'redux'
|
|
import { AppState } from '../types'
|
|
|
|
import apps from '../reducers/apps'
|
|
import authentication from '../reducers/authentication'
|
|
import config from '../reducers/config'
|
|
import entities from '../reducers/entities'
|
|
import forms from '../reducers/forms'
|
|
import groups from '../reducers/groups'
|
|
import menu from '../reducers/menu'
|
|
import notifications from '../reducers/notifications'
|
|
import registration from '../reducers/registration'
|
|
import requests from '../reducers/requests'
|
|
|
|
import logger from 'redux-logger'
|
|
import thunk from 'redux-thunk'
|
|
|
|
const store = createStore(
|
|
combineReducers<AppState>({
|
|
apps,
|
|
authentication,
|
|
config,
|
|
entities,
|
|
forms,
|
|
groups,
|
|
menu,
|
|
notifications,
|
|
registration,
|
|
requests,
|
|
}),
|
|
applyMiddleware(thunk, logger)
|
|
)
|
|
|
|
export default store
|