Guest User

Untitled

a guest
Aug 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. function mapStateToProps(state) {
  2. return {
  3. dbposts: state.posts_reducer.db_posts,
  4. db_search_posts: state.posts_reducer.db_search_posts
  5. };
  6. }
  7.  
  8. function mapDispatchToProps (dispatch) {
  9. return {
  10. posts_success: (posts) => dispatch(ACTIONS.get_db_posts(posts)),
  11. search_posts_success: (posts) => dispatch(ACTIONS.get_search_posts(posts)),
  12. remove_search_posts: () => dispatch(ACTIONS.remove_search_posts())
  13. }
  14. }
Add Comment
Please, Sign In to add comment