postTypesSaga.js 521 B

12345678910111213141516171819202122
  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 actionFindSubCommentTypeSaga = (commentId) => ({
  16. type: 'GET_SUB_COMMENT',
  17. commentId,
  18. })
  19. export const actionCreateEditPostTypeSaga = (state) => ({
  20. type: 'CREATE_EDIT_POST',
  21. state,
  22. })