twreporter-redux
Version:
redux actions and reducers for twreporter website
39 lines (36 loc) • 1.09 kB
JavaScript
import entities from './reducers/entities'
import reduxStateFields from './constants/redux-state-fields'
import indexPage from './reducers/index-page'
import { denormalizePosts, denormalizeTopics } from './utils/denormalize-asset'
import { post, posts } from './reducers/posts'
import { topic, topics } from './reducers/topics'
import { fetchIndexPageContent } from './actions/index-page'
import { fetchAFullPost, fetchListedPosts, fetchEditorPickedPosts,
fetchInfographicPostsOnIndexPage, fetchPhotographyPostsOnIndexPage } from './actions/posts'
import { fetchAFullTopic, fetchTopics, fetchTopicsOnIndexPage } from './actions/topics'
export default {
actions: {
fetchEditorPickedPosts,
fetchTopics,
fetchAFullPost,
fetchAFullTopic,
fetchListedPosts,
fetchIndexPageContent,
fetchTopicsOnIndexPage,
fetchInfographicPostsOnIndexPage,
fetchPhotographyPostsOnIndexPage,
},
reducers: {
entities,
post,
posts,
topic,
topics,
indexPage,
},
reduxStateFields,
utils: {
denormalizePosts,
denormalizeTopics,
}
}