Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(reducers): update rootReducer creation
Browse files Browse the repository at this point in the history
fix(reducers): update rootReducer creation
  • Loading branch information
Metnew committed Feb 18, 2018
1 parent 2f4b3ce commit 5b78ac3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/common/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,14 @@
import {combineReducers} from 'redux'
import {routerReducer} from 'react-router-redux'

import type {State as AuthState} from 'reducers/auth'
import type {State as LayoutState} from 'reducers/layout'
import type {State as EntitiesLinksState} from 'reducers/links'

import {layout} from './layout'
import {links} from './links'
import {auth} from './auth'

// Root reducer
export default combineReducers({
layout,
me: combineReducers({auth}),
entities: combineReducers({
links
}),
routing: routerReducer
})

export type GlobalState = {layout: LayoutState} & {me: {auth: AuthState}} & {
entities: {links: EntitiesLinksState}
}

0 comments on commit 5b78ac3

Please sign in to comment.