postTypesSaga.js 774 B

1234567891011121314151617181920212223242526272829303132
  1. export const actionFullOnePostSaga = (_id) => ({
  2. type: 'ONE_POST',
  3. _id,
  4. })
  5. export const actionAddFullCommentSaga = (postId, text) => ({
  6. type: 'ONE_POST_COMMENT',
  7. postId,
  8. text,
  9. })
  10. export const actionAddSubCommentTypeSaga = (commentId, newResult) => ({
  11. type: 'POST_SUB_COMMENT',
  12. commentId,
  13. newResult,
  14. })
  15. export const actionAddSubCommentFeedTypeSaga = (commentId, newResult) => ({
  16. type: 'FEED_POST_SUB_COMMENT',
  17. commentId,
  18. newResult,
  19. })
  20. export const actionFindSubCommentTypeSaga = (commentId) => ({
  21. type: 'GET_SUB_COMMENT',
  22. commentId,
  23. })
  24. export const actionFindSubCommentFeedTypeSaga = (commentId) => ({
  25. type: 'GET_SUB_FEED_COMMENT',
  26. commentId,
  27. })
  28. export const actionCreateEditPostTypeSaga = (state) => ({
  29. type: 'CREATE_EDIT_POST',
  30. state,
  31. })