1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-03-12 21:48:39 +01:00
ipfs-boards/src/actions/comment.js

33 lines
605 B
JavaScript
Raw Normal View History

2019-03-10 19:53:18 +01:00
import { HIDE_COMMENT, ADD_COMMENT, EDIT_COMMENT } from './actionTypes';
2018-03-06 18:24:39 +01:00
export function addComment(address, postId, comment, replyTo = 'post') {
2019-03-10 19:53:18 +01:00
return {
type: ADD_COMMENT,
address,
postId,
comment,
replyTo,
};
2018-03-06 18:24:39 +01:00
}
export function editComment(address, postId, commentId, comment, replyTo = 'post') {
2019-03-10 19:53:18 +01:00
return {
type: EDIT_COMMENT,
address,
postId,
commentId,
comment,
replyTo,
};
2018-03-06 18:24:39 +01:00
}
export function hideComment(address, postId, commentId, replyTo = 'post') {
2019-03-10 19:53:18 +01:00
return {
type: HIDE_COMMENT,
address,
postId,
commentId,
replyTo,
};
}