UNPKG

adastra-ui-comment

Version:

Testing locally 1) in this file - `npm i` install dependencies - `npm run build` or `npm run tsc` to build your module 2) in childApp - in package.json under dependencies add ui-astra-assets with file:(relativePathToRepo) - "ui-astra-a

15 lines 1.35 kB
import * as ActionTypes from 'CommentSection/constants'; import { action } from 'typesafe-actions'; export const fetchCommentsBeginAction = threadId => action(ActionTypes.FETCH_COMMENTS_BEGIN, { threadId }); export const fetchCommentsSuccessAction = (comments) => action(ActionTypes.FETCH_COMMENTS_SUCCESS, { comments }); export const fetchCommentsFailureAction = () => action(ActionTypes.FETCH_COMMENTS_FAILURE); export const createCommentBeginAction = (comment) => action(ActionTypes.CREATE_COMMENT_BEGIN, { comment }); export const createCommentSuccessAction = comment => action(ActionTypes.CREATE_COMMENT_SUCCESS, { comment }); export const fetchUsersBeginAction = () => action(ActionTypes.FETCH_USERS_BEGIN); export const fetchUsersSuccessAction = (users) => action(ActionTypes.FETCH_USERS_SUCCESS, { users }); export const fetchUsersFailureAction = () => action(ActionTypes.FETCH_USERS_FAILURE); export const setThreadIdBeginAction = (threadId) => action(ActionTypes.SET_THREAD_ID, { threadId }); export const deleteCommentBeginAction = (comment) => action(ActionTypes.DELETE_COMMENT_BEGIN, { comment }); export const deleteCommentSuccessAction = (comment) => action(ActionTypes.DELETE_COMMENT_SUCCESS, { comment }); export const setReplyUser = (userString) => action(ActionTypes.SET_REPLY_USER, { userString }); //# sourceMappingURL=actions.js.map